Skip to content
This repository was archived by the owner on Jul 29, 2026. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions backend/tests/test_backend_contracts.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ def test_backend_src_path_is_self_contained(tmp_path):
result = subprocess.run(
[sys.executable, "-c", code],
cwd=tmp_path,
env={**os.environ, "PYTHONPATH": str(Path(__file__).resolve().parents[1] / "src")},

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Remove the duplicate env keyword

This new env= argument duplicates the existing env=env just below it, so Python raises SyntaxError: keyword argument repeated: env while importing this test module. In any environment that runs or even collects backend/tests/test_backend_contracts.py, the backend test suite now fails before executing any tests; keep only one env argument.

Useful? React with 👍 / 👎.

env=env,
text=True,
capture_output=True,
Expand Down
Loading