Skip to content

Commit b17d6a8

Browse files
committed
test(study): Stabilize credible sets fixture
1 parent 88209c0 commit b17d6a8

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

tests/test_study_tools.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,16 @@ async def test_get_credible_set_colocalisation(self, client: OpenTargetsClient):
7070
assert "colocalisation" in coloc_result["credibleSet"]
7171

7272
async def test_get_credible_sets(self, client: OpenTargetsClient):
73-
result = await self.study_api.get_credible_sets(client, page_size=2)
73+
result = await self.study_api.get_credible_sets(
74+
client,
75+
study_ids=[TEST_STUDY_ID],
76+
page_size=2,
77+
)
7478
assert result is not None
7579
assert "credibleSets" in result
7680
if result.get("credibleSets"):
7781
assert "count" in result["credibleSets"]
7882
assert "rows" in result["credibleSets"]
7983
assert result["credibleSets"]["count"] > 0
84+
for row in result["credibleSets"]["rows"]:
85+
assert row["studyId"] == TEST_STUDY_ID

0 commit comments

Comments
 (0)