Skip to content

Commit

Permalink
added mock_kazu_disk_cache_on_parsers to krt tests to prevent cache p…
Browse files Browse the repository at this point in the history
…ollution
  • Loading branch information
RichJackson committed Jun 13, 2024
1 parent 713add7 commit d688d71
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kazu/tests/test_krt_managers.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def init_discrepancy_manager() -> ResourceDiscrepancyManger:
return dm


def test_resource_manager_sync():
def test_resource_manager_sync(mock_kazu_disk_cache_on_parsers):
rm = init_test_resource_manager()
for parser in rm.parsers.values():
old_resources = parser.populate_metadata_db_and_resolve_string_resources()[
Expand All @@ -146,7 +146,7 @@ def test_resource_manager_sync():
assert new_resource in rm.resource_to_parsers


def test_string_conflict_manager_sync():
def test_string_conflict_manager_sync(mock_kazu_disk_cache_on_parsers):
scm = init_test_string_conflict_manager()
new_resources: set[OntologyStringResource] = set()
assert len(scm.unresolved_conflicts) == 2
Expand All @@ -161,7 +161,7 @@ def test_string_conflict_manager_sync():
assert new_resources.issubset(scm.manager.resource_to_parsers)


def test_discrepancy_manager_sync():
def test_discrepancy_manager_sync(mock_kazu_disk_cache_on_parsers):
dm = init_discrepancy_manager()
new_resources: set[OntologyStringResource] = set()
assert len(dm.unresolved_discrepancies) == 2
Expand Down

0 comments on commit d688d71

Please sign in to comment.