PIP PLATFORM ended
This commit is contained in:
@@ -73,8 +73,10 @@ async def test_api_key_read_access():
|
||||
r2 = await c.get("/api/v1/medications", headers=api_h)
|
||||
assert r2.status_code == 200
|
||||
|
||||
r3 = await c.get("/api/v1/inventory", headers=api_h)
|
||||
assert r3.status_code == 200
|
||||
if r.json()["total"] > 0:
|
||||
pharm_id = r.json()["items"][0]["id"]
|
||||
r3 = await c.get(f"/api/v1/pharmacies/{pharm_id}/inventory", headers=api_h)
|
||||
assert r3.status_code == 200
|
||||
|
||||
print(" PASS: test_api_key_read_access")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user