Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Unit testing aiothttp clients

This code supports article


python -m venv env
. env/bin/activate
pip install -qr requirements.txt
pytest -v

Sample session:

spectras$ python3 -m venv env
spectras$ . env/bin/activate
(env) spectras$ pip install -qr requirements.txt
(env) spectras$ pytest -v
============================= test session starts ==============================
collecting ... collected 9 items

tests/ PASSED                      [ 11%]
tests/ PASSED                 [ 22%]
tests/ PASSED           [ 33%]
tests/ PASSED          [ 44%]
tests/[not json] PASSED    [ 55%]
tests/[not in kraken format] PASSED [ 66%]
tests/[missing data] PASSED [ 77%]
tests/[missing price data] PASSED [ 88%]
tests/[invalid price] PASSED [100%]

=========================== 9 passed in 0.10 seconds ===========================
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.