Server backup 2026-11-07 of uncommitted work in projects/pharma-web-celtic

Snapshot of the working tree on srv1071960 (branch main), taken during
server cleanup. .env files, node_modules, builds, logs and media were excluded.
This commit is contained in:
Shubhankar45
2026-11-07 05:43:12 +00:00
parent b001e2d03c
commit 0d30c58bf0
98 changed files with 1878 additions and 573 deletions
+2 -2
View File
@@ -48,7 +48,7 @@ class TestReports:
first = await client.post(f"{API}/dcr/{dcr}/submit", headers=auth["mr1"])
second = await client.post(f"{API}/dcr/{dcr}/submit", headers=auth["mr1"])
assert first.status_code == second.status_code == 200
assert second.json()["status"] == "PENDING_AM"
assert second.json()["status"] == "PENDING_ABM"
assert second.json()["submitted_at"] == first.json()["submitted_at"]
assert await _audit_count(db, dcr, "SUBMIT") == 1
@@ -93,7 +93,7 @@ class TestSetup:
assert (await client.post(f"{API}/products", headers=auth["admin"], json=product)).status_code == 201
assert (await client.post(f"{API}/products", headers=auth["admin"], json=product)).status_code == 409
user = {"email": "dup@acmepharma.in", "password": "Str0ngPass9", "full_name": "Dup User", "employee_code": "D1", "role": "GM"}
user = {"email": "dup@acmepharma.in", "password": "Str0ngPass9", "full_name": "Dup User", "employee_code": "D1", "role": "AGM"}
assert (await client.post(f"{API}/users", headers=auth["admin"], json=user)).status_code == 201
assert (await client.post(f"{API}/users", headers=auth["admin"], json=user)).status_code == 409