-
-
Notifications
You must be signed in to change notification settings - Fork 8
Closed
Description
Hi, thank you for Pytest-env!
Currently, it's only possible to define the env variable inside .toml or .ini files, and that works great.
I think it would be a plus to be able to define these variables via code for IDE integration (go to), which would improve readability and centralize the logic.
I thought of something like this as an API
# conftest.py
class EnvTest(AutoEnvEnum):
HOME = "~/tmp"
RUN_ENV = 1If you think it's a good idea, I would be happy to send a PR
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels