Skip to content

Commit

Permalink
tests: fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Schreiner <[email protected]>
  • Loading branch information
henryiii committed Sep 27, 2024
1 parent 452ddc7 commit e87fabc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def build(session: nox.Session) -> None:
@nox.parametrize("example", EXAMPLES, ids=EXAMPLES)
def test_doc_examples(session: nox.Session, example: str) -> None:
_prepare_cmake_ninja(session)
session.install("-e.")
session.install("-e.", "pip")
session.chdir(f"docs/examples/{example}")
reqs = nox.project.load_toml("pyproject.toml")["build-system"]["requires"]
session.install(*reqs, "pytest")
Expand All @@ -218,6 +218,7 @@ def test_doc_examples(session: nox.Session, example: str) -> None:
"--config-settings=cmake.verbose=true",
env={"PYTHONWARNINGS": "error"},
)
session.run("pip", "list")
if Path("../test.py").is_file():
session.run("python", "../test.py")
else:
Expand Down
2 changes: 2 additions & 0 deletions tests/test_pyproject_pep518.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def test_pep518_sdist(isolated, package_simple_pyproject_ext):
Requires-Python: >=3.7
Provides-Extra: test
Requires-Dist: pytest>=6.0; extra == "test"
"""
)

Expand Down Expand Up @@ -76,6 +77,7 @@ def test_pep518_sdist_with_cmake_config(isolated, cleanup_overwrite):
Metadata-Version: 2.1
Name: sdist_config
Version: 0.1.0
"""
)

Expand Down

0 comments on commit e87fabc

Please sign in to comment.