Skip to content

Allow loading cases for tests.py #366

Open
@smarie

Description

@smarie

This is the issue fixed by your PR #344 from last year @last-partizan (time flies!)

I am lightly reluctant to support this officially, as the pytest strategy seems to explicitly mention test_ as the dicovery prefix by default :

https://docs.pytest.org/en/stable/explanation/goodpractices.html#conventions-for-python-test-discovery

It also seems that other users did not complain.

But since this behaviour was working in 3.8.5 and earlier, I will accept your PR.

My reasoning is as follows : "if pytest accepts to collect your tests.py file will the default discovery mechanism, then there should be a working AUTO behaviour". I will check though, if an error message can be issued for easier debugging...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions