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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user