tests: add mock session for test_annotations

This commit is contained in:
2026-04-11 22:16:16 -04:00
parent b589b936e6
commit fe1b5d88da
+2 -2
View File
@@ -25,8 +25,8 @@ def test_source_annotations(mock_session):
assert len(annotations["Compound"]) == 246 assert len(annotations["Compound"]) == 246
def test_annotations(): def test_annotations(mock_session):
annotations = PubChemAPI.get_annotations() annotations = PubChemAPI.get_annotations(session=mock_session)
annotation_types = sorted(annotations.keys()) annotation_types = sorted(annotations.keys())
assert annotation_types == [ assert annotation_types == [
"Assay", "Assay",