Use client instead of direct httpx

This commit is contained in:
taizan-hokouto
2020-11-01 21:58:41 +09:00
parent d362152c77
commit 37c8b7ae45
3 changed files with 6 additions and 5 deletions

View File

@@ -13,7 +13,7 @@ def _set_test_data(filepath, mocker):
response_mock = mocker.Mock()
response_mock.status_code = 200
response_mock.text = _text
mocker.patch('httpx.get').return_value = response_mock
mocker.patch('httpx.Client.get').return_value = response_mock
def test_archived_page(mocker):