Skip to content

🐛 fix(verbose): name env overrides in the header - #348

Merged
gaborbernat merged 1 commit into
pytest-dev:mainfrom
gaborbernat:fix/pytest-env-source
Nov 19, 2026
Merged

gaborbernat merged 1 commit into
pytest-dev:mainfrom
gaborbernat:fix/pytest-env-source

Conversation

@gaborbernat

Copy link
Copy Markdown
Collaborator

The verbose header sent users to the selected configuration file when pytest applied an env override. The source label reads -o env for assignments supplied by an override. Previous behavior. Fixes #343.

The header can identify an override

_config_source checks the effective override_ini arguments after checking for native TOML entries. Implementation. pytest options.

Behavior changes

Native TOML entries keep the TOML filename, and dotenv entries keep their own file paths.

Reported by OSS Scanner, ANT-2026-QZ2QBYAJ.

@gaborbernat gaborbernat added the bug Something isn't working label Nov 19, 2026
@gaborbernat
gaborbernat merged commit fff304a into pytest-dev:main Nov 19, 2026
20 checks passed
@gaborbernat
gaborbernat deleted the fix/pytest-env-source branch November 23, 2026 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Verbose output attributes env overrides to the config file

1 participant