mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-17 21:19:38 -04:00
Rename to performance
This is consistent with the old performance platform URLs, which were gov.uk/performance, and others that we have like /pricing and /features
This commit is contained in:
@@ -27,7 +27,7 @@ from app.main.views import ( # noqa isort:skip
|
|||||||
new_password,
|
new_password,
|
||||||
notifications,
|
notifications,
|
||||||
organisations,
|
organisations,
|
||||||
performance_platform,
|
performance,
|
||||||
platform_admin,
|
platform_admin,
|
||||||
providers,
|
providers,
|
||||||
register,
|
register,
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ from app import performance_dashboard_api_client
|
|||||||
from app.main import main
|
from app.main import main
|
||||||
|
|
||||||
|
|
||||||
@main.route("/performance-dashboard")
|
@main.route("/performance")
|
||||||
def performance_dashboard():
|
def performance():
|
||||||
api_args = {}
|
api_args = {}
|
||||||
|
|
||||||
api_args['start_date'] = (datetime.utcnow() - timedelta(days=90)).date()
|
api_args['start_date'] = (datetime.utcnow() - timedelta(days=90)).date()
|
||||||
@@ -9,4 +9,4 @@ def test_get_aggregate_platform_stats(mocker):
|
|||||||
params_dict = {'start_date': '2021-03-01', 'end_date': '2021-03-31'}
|
params_dict = {'start_date': '2021-03-01', 'end_date': '2021-03-31'}
|
||||||
|
|
||||||
client.get_performance_dashboard_stats(params_dict=params_dict)
|
client.get_performance_dashboard_stats(params_dict=params_dict)
|
||||||
mock.assert_called_once_with('/performance-platform', params=params_dict)
|
mock.assert_called_once_with('/performance-dashboard', params=params_dict)
|
||||||
|
|||||||
Reference in New Issue
Block a user