mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-27 19:29:11 -04:00
use new detailed service endpoint for dashboard totals
we don't want to use the old statistics endpoints any more also a couple of quality of life changes * moves some logic out of the _totals.html template * tidies up statistics_utils
This commit is contained in:
@@ -13,11 +13,11 @@ class TestClient(FlaskClient):
|
||||
session['user_id'] = user.id
|
||||
session['_fresh'] = True
|
||||
if mocker:
|
||||
mocker.patch('app.user_api_client.get_user', return_value=user)
|
||||
mocker.patch('app.events_api_client.create_event')
|
||||
if mocker and service:
|
||||
session['service_id'] = service['id']
|
||||
mocker.patch('app.service_api_client.get_service', return_value={'data': service})
|
||||
get_user_mock = mocker.patch('app.user_api_client.get_user', return_value=user)
|
||||
create_event_mock = mocker.patch('app.events_api_client.create_event')
|
||||
if service:
|
||||
session['service_id'] = service['id']
|
||||
get_service_mock = mocker.patch('app.service_api_client.get_service', return_value={'data': service})
|
||||
login_user(user, remember=True)
|
||||
|
||||
def login_fresh(self):
|
||||
|
||||
Reference in New Issue
Block a user