An open-source Python package to easily obtain real-time, historical, or forecasted air quality data for anywhere in the world. Reliable, accurate and simple.
This PR adds a flag to pytest invocation --skip-slow. This flag allows user to skip tests that takes a long time (mostly get_historical_data stuffs, really). By default, pytest will run all tests, which may or may not be desirable.
pytest --skip-slow
Which tests are slow? I determined it arbitrarily by setting a time limit of how much time it roughly takes over a few test runs. I mark tests that run over 10s in my machine to be "slow".
Note: I haven't documented this anywhere on the repo yet. If this can wait, I'll do some writeups. Otherwise, I can do another PR in the near future.
This PR adds a flag to pytest invocation
--skip-slow
. This flag allows user to skip tests that takes a long time (mostlyget_historical_data
stuffs, really). By default, pytest will run all tests, which may or may not be desirable.Which tests are slow? I determined it arbitrarily by setting a time limit of how much time it roughly takes over a few test runs. I mark tests that run over 10s in my machine to be "slow".
Note: I haven't documented this anywhere on the repo yet. If this can wait, I'll do some writeups. Otherwise, I can do another PR in the near future.