Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
sweng66 committed Feb 7, 2025
1 parent 3eb4641 commit 18fb397
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/api/test_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ def patch_get_map_ateam_curies_to_names():
mock_func.return_value = {'ATP:0000196': 'antibody extraction complete'}
yield


@pytest.fixture(scope="module", autouse=True)
def patch_get_parent_or_children():
with patch("agr_literature_service.api.crud.search_crud.get_parent_or_children") as mock_func:
Expand Down
7 changes: 7 additions & 0 deletions tests/api/test_search_dates.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ def patch_get_map_ateam_curies_to_names():
yield


@pytest.fixture(scope="module", autouse=True)
def patch_get_parent_or_children():
with patch("agr_literature_service.api.crud.search_crud.get_parent_or_children") as mock_func:
mock_func.return_value = ["ATP:0000141", "ATP:0000134", "ATP:0000139", "ATP:0000135"]
yield


@pytest.fixture(scope='module')
def initialize_elasticsearch():
print("***** Initializing Elasticsearch Data *****")
Expand Down

0 comments on commit 18fb397

Please sign in to comment.