Skip to content

Commit 6914ab1

Browse files
Strengthen Makefile python3 quality guard assertions
Co-authored-by: Shri Sukhani <shrisukhani@users.noreply.github.com>
1 parent c55a73c commit 6914ab1

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

tests/test_makefile_quality_targets.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,10 @@ def test_makefile_compile_target_covers_sdk_examples_and_tests():
2525
makefile_text = Path("Makefile").read_text(encoding="utf-8")
2626

2727
assert "compile:\n\t$(PYTHON) -m compileall -q hyperbrowser examples tests" in makefile_text
28+
29+
30+
def test_makefile_uses_python3_default_and_python_module_invocation():
31+
makefile_text = Path("Makefile").read_text(encoding="utf-8")
32+
33+
assert "PYTHON ?= python3" in makefile_text
34+
assert "install:\n\t$(PYTHON) -m pip install -e . pytest ruff build" in makefile_text

0 commit comments

Comments
 (0)