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

AUDIT: Reviewed test_issue_217_* functions

parent 663fa736
No related branches found
No related tags found
1 merge request!29TST: add tests for server#217 and server#221
Pipeline #20372 passed
......@@ -603,11 +603,13 @@ def test_issue_132():
def test_issue_217():
"""Server gets list property datatype wrong if description is updated."""
# @review Florian Spreckelsen 2022-03-15
rt = db.RecordType(name="TestRT").insert()
# prop = db.Property(name="LP", datatype=db.LIST("TestRT")).insert()
r = db.Record().add_parent(id=rt.id).add_property(name=rt.name,
datatype=db.LIST(db.INTEGER),
datatype=db.LIST(
db.INTEGER),
value=[10001, 10002])
assert r.get_property(rt.name).datatype == db.LIST(db.INTEGER)
assert r.get_property(rt.name).value == [10001, 10002]
......@@ -624,13 +626,15 @@ def test_issue_217():
r.update()
assert r.get_property(rt.name).datatype == db.LIST(db.INTEGER)
assert r.get_property(rt.name).value == [10001, 10002]
r.retrieve() # This line fails in the bug report with invalid XML.
# This line fails in the bug report with invalid XML.
r.retrieve()
assert r.get_property(rt.name).datatype == db.LIST(db.INTEGER)
assert r.get_property(rt.name).value == [10001, 10002]
def test_issue_217_2():
"""Server gets overridden name of property wrong when the description of record is being updated."""
# @review Florian Spreckelsen 2022-03-15
rt = db.RecordType(name="TestRT").insert()
# prop = db.Property(name="LP", datatype=db.LIST("TestRT")).insert()
......@@ -659,6 +663,7 @@ def test_issue_217_2():
def test_issue_217_3():
"""Server gets overridden description of property wrong when the description of record is being updated."""
# @review Florian Spreckelsen 2022-03-15
rt = db.RecordType(name="TestRT", description="Desc").insert()
# prop = db.Property(name="LP", datatype=db.LIST("TestRT")).insert()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment