Testing | Contributing | Python Library | Meteostat Developers

The Meteostat Python library uses Pytest as its testing framework. Pytest is a powerful and flexible testing tool that makes it easy to write simple and scalable test cases for your code.

To run the test suite, navigate to the root directory of the repository and execute the following command:

poetry run pytest tests/unit/ tests/integration/

This command will discover and run all test cases located in the tests/unit/ and tests/integration/ directories. You can also specify a particular test file or directory to run by providing its path as an argument: