Skip to content

Commit b23840a

Browse files
committed
Improve testing
1 parent f9becc9 commit b23840a

2 files changed

Lines changed: 29 additions & 381 deletions

File tree

noxfile.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,26 @@
1+
from __future__ import annotations
2+
13
import nox
24

5+
36
nox.options.default_venv_backend = "uv"
47

58
python_versions = ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
69

710

811
@nox.session(python=python_versions)
9-
def tests(session):
12+
def tests(session: nox.Session):
1013
session.install("--upgrade", "pip", "uv")
1114
session.install("html5lib==0.999999999", "django==1.10", "pyglet==2.0.dev23")
1215
session.install(".") # Assuming pip-check is in the current project
1316

14-
session.run("pip-check")
17+
response = session.run("pip-check", silent=True)
18+
19+
# Make sure, packages are actually listed
20+
assert "1.10" in response
21+
assert "0.999999999" in response
22+
assert "2.0.dev23" in response
23+
1524
session.run("pip-check", "--help")
1625
session.run(
1726
"pip-check",

0 commit comments

Comments
 (0)