Skip to content

django_find_project: inconsistent behavior with args #689

Open
@blueyed

Description

@blueyed

The django_find_project option will not check for a Django project (manage.py) if run via pytest -k foo, since it will only look for manage.py from "foo".

The main issue here is: foo is not a file, but the value for the -k option, it should behave as with just pytest here. This requires to actually look at parsed args/options and not the raw args.

As a workaround we should add cwd always for the check (last), as with just using pytest.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions