You need to install pytest
for run unittests:
pip3 install -r dev-requirements.txt
- You can run tests with
pytest
command: - Run all unittests:
pytest tests
- Run also tests for asynchronous interface:
pytest tests --end2end
- Run individual tests:
- Run API tests:
pytest tests/test_sync_core/test_public_api
- Run
every_historical()
async scraper method's consistence:pytest tests/test_async_core/test_scraper/test_every_historical.py
- Run API tests:
- Run all unittests:
Also, if your system is Unix, you can use make
for run tests, install, precompile/restore source code, build and clean the whole directory (see Makefile).
You can see online tests for Linux/Mac and Windows based systems at TravisCI and AppVeyor: