Skip to content

Set working directory #42

@FredrikMeyer

Description

@FredrikMeyer

Thanks for a great package!

My situation is this. We have a monorepo at work with several Python projects in it. When I run python-pytest-file, it chooses the repo root as the working directory, from where it can't find the module being tested.

In my case the directory I want to run pytest from is somewhere in the middle between the root and the test file.

Is it possible to somehow set the working directory?

And if not, it's a feature request :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is neededquestionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions