Unit Tests#

Tests are written using pytest. Install dev dependencies first if you haven’t already:

pip install -e ".[dev]"

Here are some ways to run tests:

  • Run all tests:

    pytest
    
  • Run all tests in a file:

    pytest tests/test_prices.py
    
  • Run a specific test:

    pytest tests/test_prices_repair.py::TestPriceRepair::test_ticker_missing
    
  • General command:

    pytest tests/{file}.py::{class}::{method}
    

Note

The tests are currently failing already

Standard result:

Failures: 11

Errors: 93

Skipped: 1

See also

See the pytest documentation for more information.