From fe1b5d88da64dbca956c075e8b4c8895b2b92cb8 Mon Sep 17 00:00:00 2001 From: Alex Maldonado Date: Sat, 11 Apr 2026 22:16:16 -0400 Subject: [PATCH] tests: add mock session for `test_annotations` --- tests/test_pc_api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_pc_api.py b/tests/test_pc_api.py index 9f89b88..672b0d1 100644 --- a/tests/test_pc_api.py +++ b/tests/test_pc_api.py @@ -25,8 +25,8 @@ def test_source_annotations(mock_session): assert len(annotations["Compound"]) == 246 -def test_annotations(): - annotations = PubChemAPI.get_annotations() +def test_annotations(mock_session): + annotations = PubChemAPI.get_annotations(session=mock_session) annotation_types = sorted(annotations.keys()) assert annotation_types == [ "Assay",