added mock auth token to downloader tests

This commit is contained in:
Khalim Conn-Kowlessar 2023-09-12 16:06:46 +01:00
parent 9c164c202f
commit 16f090d987

View file

@ -17,7 +17,7 @@ class TestDownloader:
def mock_client(self, mocker):
# mocker is a wrapper around unittest.mock.Mock, extending with
# additional features specific to pytest
client = mocker.Mock(spec=EpcClient())
client = mocker.Mock(spec=EpcClient(auth_token="123"))
client.domestic.search.return_value = mock_epc_response
return client