Skip to content

Commit 6e8e1b1

Browse files
fix: update pytest env (#623)
1 parent 4d0cd9b commit 6e8e1b1

3 files changed

Lines changed: 10 additions & 1 deletion

File tree

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ version = "10.1.0"
3232
codecov = "codecov_cli.main:run"
3333
codecovcli = "codecov_cli.main:run"
3434

35+
[tool.pytest.ini_options]
36+
env = [
37+
"CODECOV_ENV=test",
38+
]
39+
3540
[tool.setuptools]
3641
packages = ["codecov_cli"]
3742

tests/requirements.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ pre-commit
22
pytest
33
pytest-asyncio
44
pytest-cov
5+
pytest-env
56
pytest-mock

tests/requirements.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# This file is autogenerated by pip-compile with Python 3.11
33
# by the following command:
44
#
5-
# pip-compile tests/requirements.in
5+
# pip-compile requirements.in
66
#
77
cfgv==3.4.0
88
# via pre-commit
@@ -31,11 +31,14 @@ pytest==7.4.2
3131
# -r requirements.in
3232
# pytest-asyncio
3333
# pytest-cov
34+
# pytest-env
3435
# pytest-mock
3536
pytest-asyncio==0.21.1
3637
# via -r requirements.in
3738
pytest-cov==4.1.0
3839
# via -r requirements.in
40+
pytest-env==1.1.0
41+
# via -r requirements.in
3942
pytest-mock==3.11.1
4043
# via -r requirements.in
4144
pyyaml==6.0.1

0 commit comments

Comments
 (0)