From 18f85fd843d5b329382b26875f0be9e489adf741 Mon Sep 17 00:00:00 2001 From: Timm Fitschen <t.fitschen@indiscale.com> Date: Tue, 24 Oct 2023 01:16:10 +0200 Subject: [PATCH] TST: more precise test for deeply nested properties --- tests/test_issues_server.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_issues_server.py b/tests/test_issues_server.py index b39c8a7..e499e61 100644 --- a/tests/test_issues_server.py +++ b/tests/test_issues_server.py @@ -101,12 +101,14 @@ def test_issue_62(): # renaming has to be reflected in Test_Record and Test_Prop rec = db.execute_query("FIND Record Test_Record", unique=True) assert rec.parents[0].name == rtb.name + assert rec.get_property("Test_Prop").datatype == rtb.name prop = db.execute_query("FIND Property Test_Prop", unique=True) assert prop.datatype == rtb.name # fails; datatype not updated # Can't use Test_RTA as datatype anymore prop2 = db.Property(name="Test_Prop2", datatype="Test_RTA") - with pytest.raises(TransactionError): + with pytest.raises(TransactionError) as exc: prop2.insert() + assert "Unknown data type." in str(exc.value) def test_issue_85_a(): -- GitLab