mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
added mock auth token to downloader tests
This commit is contained in:
parent
9c164c202f
commit
16f090d987
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue