If you want to test your function with different examples, use the pytest.mark.parametrize decorator.
pytest.mark.parametrize
My previous tips on testing.
Simulate External Services in Testing with Mock Objects
Validating Polars DataFrames with Pandera
Pandera: Data Validation Made Simple for Python DataFrames
Your email address will not be published. Required fields are marked *
Name
Email
Website
Save my name, email, and website in this browser for the next time I comment.
Δ