mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-28 03:39:29 -04:00
Added mock to client request for get request of count
This commit is contained in:
committed by
Carlo Costino
parent
83767b8ba8
commit
62a09c5223
@@ -2423,8 +2423,15 @@ def _os_environ():
|
||||
os.environ[k] = v
|
||||
|
||||
|
||||
@pytest.fixture()
|
||||
def client_request(logged_in_client, mocker, service_one): # noqa (C901 too complex)
|
||||
@pytest.fixture() # noqa (C901 too complex)
|
||||
def client_request(_logged_in_client, mocker, service_one): # noqa (C901 too complex)
|
||||
def _get(mocker):
|
||||
return {"count": 0}
|
||||
|
||||
mocker.patch(
|
||||
"app.service_api_client.get_global_notification_count", side_effect=_get
|
||||
)
|
||||
|
||||
class ClientRequest:
|
||||
@staticmethod
|
||||
@contextmanager
|
||||
|
||||
Reference in New Issue
Block a user