Skip to content
Snippets Groups Projects
Commit 3218c02b authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

FIX: fix fix of test

parent fb183efb
No related branches found
No related tags found
2 merge requests!160STY: styling,!131Accept references of children
Pipeline #40925 canceled
......@@ -686,7 +686,7 @@ def test_split_into_inserts_and_updates_backref(crawler_mocked_for_backref_test)
@patch("caoscrawler.identifiable_adapters.get_children_of_rt",
new=Mock(side_effect=id()))
new=Mock(side_effect=id))
def test_split_into_inserts_and_updates_mult_backref(crawler_mocked_for_backref_test):
# test whether multiple references of the same record type are correctly used
crawler = crawler_mocked_for_backref_test
......@@ -708,7 +708,7 @@ def test_split_into_inserts_and_updates_mult_backref(crawler_mocked_for_backref_
@patch("caoscrawler.identifiable_adapters.get_children_of_rt",
new=Mock(side_effect=id()))
new=Mock(side_effect=id))
def test_split_into_inserts_and_updates_diff_backref(crawler_mocked_for_backref_test):
# test whether multiple references of the different record types are correctly used
crawler = crawler_mocked_for_backref_test
......
......@@ -19,7 +19,8 @@ from test_crawler import mock_get_entity_by
def clear_cache():
cache_clear()
@patch("caoscrawler.identifiable_adapters.get_children_of_rt",
new=Mock(side_effect=id))
@patch("caoscrawler.identifiable_adapters.cached_get_entity_by",
new=Mock(side_effect=mock_get_entity_by))
def test_file_identifiable():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment