Repository navigation
Releases
Releases · pytest-dev/pytest-env
1.8.8
Immutable
release. Only release title and notes can be modified.
Bug fixes
- Expand dotenv references in file order when
env_files_skip_if_setis enabled, including repeated definitions and bare names (#358) by @narayana006 and @gaborbernat.
New Contributors
- @narayana006 made their first contribution in #358
1.8.7
Immutable
release. Only release title and notes can be modified.
Bug fixes
- Reject non-boolean
env_files_skip_if_setvalues in native TOML configuration (#355) by @gaborbernat. - Report
-o envas the source of overridden INI entries in the verbose header (#348) by @gaborbernat. - Report a configuration error for a directory or named pipe supplied as a dotenv file (#356) by @gaborbernat.
- Report a usage error naming the entry when the operating system rejects an environment assignment (#349) by @gaborbernat.
- Resolve mixed-case environment variable references on Windows (#351) by @gaborbernat.
- Show the file and line number of malformed dotenv statements in pytest's warning summary (#350) by @gaborbernat.
Security
- Omit rejected environment option values from configuration errors (#353) by @gaborbernat.
- Report invalid environment templates without including field text in error output (#354) by @gaborbernat.
Performance
- Defer loading the
.envparser until a configured environment file is read (#341) by @gaborbernat.
1.8.6
Immutable
release. Only release title and notes can be modified.
Bug fixes
- Escape non-printable characters in the
--pytest-env-verboseheader so each assignment stays on one line (#331) by @gaborbernat. - Expand
${VAR}in.envfiles with the kept value whenenv_files_skip_if_setskips the file's own assignment (#340) by @gaborbernat. - Keep an existing variable when an entry combines
skip_if_set(D:) withunset(U:) (#337) by @gaborbernat. - Name the file when a TOML file found during discovery does not parse, and skip files whose
pytest_envis not a table (#333) by @gaborbernat. - Raise
FileNotFoundErrorfor an empty--envfilevalue instead of loading the configured env files (#330) by @gaborbernat. - Read
[pytest_env]from a custom-named TOML file selected with-cinstead of a sibling or parent file (#339) by @gaborbernat. - Reject INI
envlines with an unknown flag or no variable name instead of applying them (#334) by @gaborbernat. - Reject native TOML entry tables with unknown keys, non-boolean flags or no value instead of applying them (#338) by @gaborbernat.
- Resolve
--envfileagainst the invocation directory before the project root, so--envfile ../fileloads the file it names (#332) by @gaborbernat. - Skip directories and other non-regular entries named like a TOML configuration file during discovery (#336) by @gaborbernat.
Security
- Report an invalid
{VAR}template as a usage error that names the entry instead of printing an environment value (#335) by @gaborbernat.
Packaging
- Every wheel now carries a PEP 770 CycloneDX SBOM in its
.dist-info/sbomsdirectory, written at build time by python-sbom (#309) by @gaborbernat.
1.8.5
Immutable
release. Only release title and notes can be modified.
1.8.4
Immutable
release. Only release title and notes can be modified.
Bug fixes
- Honor an empty native TOML environment section over INI
envsettings (#294) by @Zhuyuyangyy and @gaborbernat.
New Contributors
- @Zhuyuyangyy made their first contribution in #294
1.8.3
Immutable
release. Only release title and notes can be modified.
1.8.2
Immutable
release. Only release title and notes can be modified.
Bug fixes
- Fix repository links in the PyPI project description (#282) by @gaborbernat.
Packaging
- Describe the pytest plugin and its testing purpose in package metadata (#282) by @gaborbernat.
New Contributors
- @musicinmybrain made their first contribution in #275
- @Arham-Begani made their first contribution in #278
1.8.1
Immutable
release. Only release title and notes can be modified.
Bug fixes
- Respect an explicitly empty native
env_fileslist over the INI fallback (#273) by @edsonsims.
New Contributors
- @edsonsims made their first contribution in #273
1.8.0
Immutable
release. Only release title and notes can be modified.
Features
- Require Python 3.11 or newer (#270) by @gaborbernat.
Documentation
- Document
[pytest]environment settings inpytest.tomland.pytest.toml(#262) by @devtechedge.
New Contributors
- @devtechedge made their first contribution in #262
1.7.1
Immutable
release. Only release title and notes can be modified.
Bug fixes
- Discover
pyproject.tomlenvironment settings beside native pytest configuration (#260) by @oyeong011.
New Contributors
- @oyeong011 made their first contribution in #260