Skip to content

Commit 95bf5f0

Browse files
authored
fix: Move pytest, pytest-cov and testcontainers to tests group (#2377)
* fix: Move pytest,pytest-cov and testcontainers to `tests` group * Fix tox, add tests group when running tests
1 parent 106e999 commit 95bf5f0

File tree

3 files changed

+19
-11
lines changed

3 files changed

+19
-11
lines changed

pyproject.toml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,16 +71,13 @@ dependencies = [
7171
"kubernetes>=31.0.0",
7272
"packaging>=24.1",
7373
"pyhelper-utils>=0.0.42",
74-
"pytest-cov>=6.0.0",
75-
"pytest>=8.3.3",
7674
"python-benedict>=0.33.2",
7775
"python-simple-logger>=1.0.40",
7876
"requests>=2.32.3",
7977
"rich>=13.9.2",
8078
"ruff>=0.6.9",
81-
"testcontainers>=4.9.0",
8279
"timeout-sampler>=0.0.46",
83-
"xmltodict>=0.13.0"
80+
"xmltodict>=0.13.0",
8481
]
8582

8683
[[project.authors]]
@@ -111,3 +108,10 @@ dependencies = [
111108
[build-system]
112109
requires = [ "hatchling" ]
113110
build-backend = "hatchling.build"
111+
112+
[dependency-groups]
113+
tests = [
114+
"pytest>=8.3.5",
115+
"pytest-cov>=6.1.1",
116+
"testcontainers>=4.10.0",
117+
]

tox.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ env_list = ["unittests"]
44
[env.unittests]
55
description = "Run unittests"
66
deps = ["uv"]
7-
commands = [["uv", "run", "pytest"]]
7+
commands = [["uv", "run", "--group", "tests", "pytest"]]

uv.lock

Lines changed: 10 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)