Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add medical action association table to UI (plus fixture & enum regen) #937

Merged
merged 14 commits into from
Jan 17, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update association entity test to handle the case where the matched I…
…D is in the disease_context_qualifier slot
kevinschaper committed Jan 14, 2025
commit 9ee736d2322afff946912caf76748393c97c22a9
11 changes: 9 additions & 2 deletions backend/tests/integration/test_solr_association.py
Original file line number Diff line number Diff line change
@@ -68,10 +68,17 @@ def test_entity():
assert response
assert response.total > 50
for association in response.items:
if association.subject_closure is None or len(association.subject_closure) == 0:

if (
association.subject_closure is None or len(association.subject_closure) == 0
) and association.disease_context_qualifier is None:
assert "MONDO:0007947" in association.object_closure
elif association.object_closure is None or len(association.object_closure) == 0:
elif (
association.object_closure is None or len(association.object_closure) == 0
) and association.disease_context_qualifier is None:
assert "MONDO:0007947" in association.subject_closure
elif association.disease_context_qualifier is not None:
assert "MONDO:0007947" in association.disease_context_qualifier_closure
else:
assert "MONDO:0007947" in association.subject_closure or "MONDO:0007947" in association.object_closure