deploy/Dockerfile must set PYTHONPATH=/app/backend.
()
| 74 | |
| 75 | |
| 76 | def test_dockerfile_has_pythonpath(): |
| 77 | """deploy/Dockerfile must set PYTHONPATH=/app/backend.""" |
| 78 | dockerfile = _REPO / "deploy" / "Dockerfile" |
| 79 | if not dockerfile.exists(): |
| 80 | pytest.skip("deploy/Dockerfile not found") |
| 81 | content = dockerfile.read_text() |
| 82 | assert "PYTHONPATH" in content, "Dockerfile missing PYTHONPATH env" |
| 83 | assert "/app/backend" in content, "Dockerfile PYTHONPATH should include /app/backend" |
| 84 | |
| 85 | |
| 86 | def test_main_py_bootstrap_adds_backend_dir(): |
nothing calls this directly
no outgoing calls
no test coverage detected