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

TST: fix add_to_remote call

parent 56ec73f0
No related branches found
No related tags found
2 merge requests!91Release 0.3,!8backref
Pipeline #31191 passed
...@@ -25,6 +25,7 @@ from pytest import mark ...@@ -25,6 +25,7 @@ from pytest import mark
import caosdb as db import caosdb as db
from caoscrawler.crawl import Crawler from caoscrawler.crawl import Crawler
from caoscrawler.identifiable import Identifiable
from caoscrawler.identifiable_adapters import CaosDBIdentifiableAdapter from caoscrawler.identifiable_adapters import CaosDBIdentifiableAdapter
from caoscrawler.structure_elements import DictElement from caoscrawler.structure_elements import DictElement
from test_tool import rfp from test_tool import rfp
...@@ -105,8 +106,10 @@ def test_issue_39(): ...@@ -105,8 +106,10 @@ def test_issue_39():
flat_list = [b1, a1, a2, b2] flat_list = [b1, a1, a2, b2]
# the two records with ids exist remotely # the two records with ids exist remotely
crawler.add_to_remote_existing_cache(a1) crawler.add_to_remote_existing_cache(a1,
crawler.add_to_remote_existing_cache(b2) Identifiable(name="A", record_id=101, record_type="RT_A"))
crawler.add_to_remote_existing_cache(b2,
Identifiable(name="B", record_id=102, record_type="RT_B"))
# this would result in a merge conflict before # this would result in a merge conflict before
ins, ups = crawler.split_into_inserts_and_updates(flat_list) ins, ups = crawler.split_into_inserts_and_updates(flat_list)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment