Should be able following [this documentation](https://docs.pytest.org/en/stable/explanation/goodpractices.html#tests-as-part-of-application-code)