Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add test requirements * add pytest configuration * add requirements * refactoring ci process * fix typo * use async pytest * add pytest libraries * add pytest libraries * remove unnecessary file * remove event_loop fixture * migrated to different http mock library
- Loading branch information
Showing
8 changed files
with
118 additions
and
142 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
pytest-asyncio | ||
pytest-timeout | ||
pytest-xdist | ||
pytest-cov | ||
mock | ||
aioresponses |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
aiohttp>=3.7.4,<4 | ||
geojson>=2.4.0 | ||
haversine>=1.0.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
"""Configuration for tests.""" | ||
import pytest | ||
from aioresponses import aioresponses | ||
|
||
|
||
@pytest.fixture | ||
def mock_aioresponse(): | ||
"""Return aioresponse fixture.""" | ||
with aioresponses() as m: | ||
yield m |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.