From 513f22daadd70e7bdcc83fb723479d5cb6e60cc4 Mon Sep 17 00:00:00 2001 From: devtechedge Date: Mon, 14 Sep 2026 03:00:21 +0530 Subject: [PATCH] Document pytest-native [pytest] env table in pytest.toml / .pytest.toml --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 601e414..0a450a3 100644 --- a/README.md +++ b/README.md @@ -191,6 +191,19 @@ env = [ ] ``` +```toml +# pytest.toml / .pytest.toml +[pytest] +env = [ + "HOME=~/tmp", + "RUN_ENV=test", +] +``` + +In `pytest.toml` / `.pytest.toml`, this pytest-native `[pytest]` table is an alternative to the plugin-specific +`[pytest_env]` TOML table described above. Both forms work there, so `pytest.toml` does not have to use +`[pytest_env]`. + Prefix flags modify behavior. Flags are case-insensitive and can be combined in any order (e.g., `R:D:KEY=VALUE`): | Flag | Description |