Skip to content
Snippets Groups Projects
Commit 6e7a2eba authored by Alexander Schlemmer's avatar Alexander Schlemmer
Browse files

FIX: fixed typos in test_basic

parent e2543b35
No related branches found
No related tags found
2 merge requests!108Release 0.5.0,!104Create a new scanner module and move functions from crawl module there
Pipeline #34476 passed with warnings
......@@ -112,7 +112,7 @@ def test_ambigious_lookup(clear_database, usemodel, crawler, ident):
proj = db.execute_query("FIND Project WITH identifier='SpeedOfLight'", unique=True)
with pytest.raises(RuntimeError, match=".*unambigiously.*"):
print(crawler.identifiableAdapter.retrieve_identified_record_for_identifiable(
print(crawler[0].identifiableAdapter.retrieve_identified_record_for_identifiable(
Identifiable(properties={'project': proj.id})))
......@@ -147,7 +147,7 @@ def test_single_insertion(clear_database, usemodel, crawler, ident):
def test_multiple_insertions(clear_database, usemodel, ident, crawler):
ins, ups = crawler[0].synchronize([1])
ins, ups = crawler[0].synchronize(crawler[1])
# Do a second run on the same data, there should be no changes:
cr = Crawler(identifiableAdapter=ident)
......@@ -158,7 +158,7 @@ def test_multiple_insertions(clear_database, usemodel, ident, crawler):
def test_insertion(clear_database, usemodel, ident, crawler):
ins, ups = crawler[0].synchronize([1])
ins, ups = crawler[0].synchronize(crawler[1])
# Do a second run on the same data, there should a new insert:
cr = Crawler(identifiableAdapter=ident)
......@@ -178,7 +178,7 @@ def test_insertion(clear_database, usemodel, ident, crawler):
def test_insert_auth(clear_database, usemodel, ident, crawler):
ins, ups = crawler[0].synchronize([1])
ins, ups = crawler[0].synchronize(crawler[1])
# Do a second run on the same data, there should a new insert:
cr = Crawler(identifiableAdapter=ident, securityMode=SecurityMode.RETRIEVE)
......@@ -200,7 +200,7 @@ def test_insert_auth(clear_database, usemodel, ident, crawler):
def test_insertion_and_update(clear_database, usemodel, ident, crawler):
ins, ups = crawler[0].synchronize([1])
ins, ups = crawler[0].synchronize(crawler[1])
cr = Crawler(identifiableAdapter=ident)
crawled_data, debug_tree = crawl_standard_test_directory(cr, "example_insert")
......@@ -217,7 +217,7 @@ def test_insertion_and_update(clear_database, usemodel, ident, crawler):
def test_identifiable_update(clear_database, usemodel, ident, crawler):
ins, ups = crawler[0].synchronize([1])
ins, ups = crawler[0].synchronize(crawler[1])
# Do a second run on the same data with a change in one
# of the identifiables:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment