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

FIX: added missing function

parent 5c3d1579
No related branches found
No related tags found
1 merge request!29ENH: new module which allows to register integration tests in caosdb instances
Pipeline #23314 passed
...@@ -62,6 +62,17 @@ def set_test_key(KEY): ...@@ -62,6 +62,17 @@ def set_test_key(KEY):
TEST_KEY = KEY TEST_KEY = KEY
def not_test_record(r: db.Record):
global TEST_KEY
if r.name == "PyTestInfo" or r.name == "TestIdentification":
return False
if r.get_property("TestIdentification") is not None:
if (r.get_property("TestIdentification").value ==
TEST_KEY):
return False
return True
def belongs_to_test_identification(r: db.Record): def belongs_to_test_identification(r: db.Record):
global TEST_KEY global TEST_KEY
# RecordType and Property # RecordType and Property
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment