Skip to content

Commit

Permalink
add assertion notes
Browse files Browse the repository at this point in the history
  • Loading branch information
jsstevenson committed Aug 5, 2024
1 parent 8e576fb commit 52dc2fb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions server/tests/integration/test_lookup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ async def test_normalize_gene(async_client: AsyncClient):
"concept_id": "hgnc:8031",
"symbol": "NTRK1",
"cased": "NTRK1",
}
}, "Results should be properly cased regardless of input"

response = await async_client.get("/api/lookup/gene?term=acee")
assert response.status_code == 200
Expand All @@ -32,7 +32,7 @@ async def test_normalize_gene(async_client: AsyncClient):
"concept_id": "hgnc:108",
"symbol": "ACHE",
"cased": "ACEE",
}
}, "Lookup by alias should work"

response = await async_client.get("/api/lookup/gene?term=c9ORF72")
assert response.status_code == 200
Expand All @@ -41,11 +41,11 @@ async def test_normalize_gene(async_client: AsyncClient):
"concept_id": "hgnc:28337",
"symbol": "C9orf72",
"cased": "C9orf72",
}
}, "Correct capitalization for orf genes should be observed"

response = await async_client.get("/api/lookup/gene?term=sdfliuwer")
assert response.status_code == 200
assert response.json() == {
"term": "sdfliuwer",
"warnings": ["Lookup of gene term sdfliuwer failed."],
}
}, "Failed lookup should still respond successfully"

0 comments on commit 52dc2fb

Please sign in to comment.