Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TST: Skip tests using fpdf2 if it's not installed #2419

Merged
merged 1 commit into from
Jan 21, 2024
Merged

Commits on Jan 21, 2024

  1. TST: Skip tests using fpdf2 if it's not installed

    The Debian ecosystem installs only packages which are also present
    in the Debian ecosystem for testing. This includes pytest, but it
    does not include fpdf2.
    
    Adding the line 'pytest.importorskip("fpdf")' within the test
    and before the import ensures that pytest skips the test in
    case fpdf is not installed.
    
    Closes #2408
    MartinThoma committed Jan 21, 2024
    Configuration menu
    Copy the full SHA
    3b7fe3f View commit details
    Browse the repository at this point in the history