tests: add mock session for test_annotations
This commit is contained in:
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user