Skip to content
Snippets Groups Projects
Commit c9698233 authored by Florian Spreckelsen's avatar Florian Spreckelsen
Browse files

FIX: Re-enable, explain and xfail test for...

FIX: Re-enable, explain and xfail test for https://gitlab.com/linkahead/linkahead-server/-/issues/257
parent d3280bfd
No related branches found
No related tags found
No related merge requests found
Pipeline #49723 passed
......@@ -27,7 +27,7 @@ import caosdb as db
from caosdb.connection.connection import get_connection
from caosdb.exceptions import TransactionError
from pytest import raises
from pytest import mark, raises
def setup_function(function):
......@@ -154,6 +154,7 @@ def test_datatype_overriding_update():
assert str("DATETIME").lower() == rt.get_properties()[0].datatype.lower()
@mark.xfail(reason="https://gitlab.com/linkahead/linkahead-server/-/issues/257")
def test_recordtype_to_record():
rt = RecordType(name="SimpleTextRecordType")
rt.datatype = "TEXT"
......@@ -169,9 +170,9 @@ def test_recordtype_to_record():
rec = Record().add_parent(name="SimpleTextRecordType").insert()
assert rec.is_valid()
# TODO
# assert rec.datatype is not None
# assert str("TEXT").lower() == rec.datatype.lower()
# This fails to inherit the datatype
assert rec.datatype is not None
assert str("TEXT").lower() == rec.datatype.lower()
def test_concrete_property():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment