fix api container package entrypoint
CI / compose (push) Failing after 7m7s

This commit is contained in:
Marco0300
2026-09-03 14:03:17 +02:00
parent 54af01091d
commit 921fe40af8
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -52,6 +52,11 @@ class Phase15OpsTests(unittest.TestCase):
self.assertIn("urllib.request.urlopen('http://127.0.0.1:8080/healthz'", compose)
self.assertNotIn('test: ["CMD", "wget", "--spider"', compose)
def test_api_container_uses_package_entrypoint_for_relative_imports(self):
dockerfile = (ROOT / "apps/api/Dockerfile").read_text()
self.assertIn('CMD ["python", "-m", "app.main"', dockerfile)
self.assertNotIn('CMD ["python", "/app/app/main.py"', dockerfile)
def test_backup_restore_integrity_and_checksum(self):
with TemporaryDirectory() as tmp:
root = Path(tmp); db = root / "prospects.db"; backups = root / "backups"