Skip to content

Running tests from wheel package with --pyargs ignores custom arguments #3517

Closed
@fkromer

Description

@fkromer

I created a test only package like described here (wheel, tests deployed via data_package=). I noticed that if the tests are run on Ubuntu with pytest --pyargs <package-name> <custom-arguments> the tests are detected and run but they fail during setup because the custom command line arguments are not recognized from conftest.py. I found a workaround for this issue. Is this the recommended way to handle this my use case (deploy test only package with custom command line arguments)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: questiongeneral question, might be closed after 2 weeks of inactivity

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions