From 29fb417f0902a58b2e6dfba74c135085fe38d472 Mon Sep 17 00:00:00 2001 From: Petru Conduraru Date: Sun, 12 Jul 2026 21:33:52 +0300 Subject: [PATCH] Fix ci: test_get_class_relations calls wrong bSDD client method test_get_class_relations asserted on a "classRelations" key but called client.get_class_properties() (endpoint Class/Properties/v1), whose response never contains classRelations, so the test failed every run. The Class/Relations/v1 endpoint is exposed by client.get_class_relations() (with the same get_reverse_relations positional the test already passes), which returns the classRelations payload the assertion expects. Verified live against the bSDD API: the corrected call passes. This change was made with the assistance of an AI tool. Co-Authored-By: Claude Fable 5 --- src/bsdd/tests/test_bsdd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bsdd/tests/test_bsdd.py b/src/bsdd/tests/test_bsdd.py index 9dab01025c..7bf2d6d2d0 100644 --- a/src/bsdd/tests/test_bsdd.py +++ b/src/bsdd/tests/test_bsdd.py @@ -39,7 +39,7 @@ def test_get_class(): def test_get_class_relations(): uri_light_fixture = next(l for l in get_ifc_classes()["classes"] if "IfcLightFixture" == l["code"])["uri"] - ifc4x3_light_fixture_relations = client.get_class_properties(uri_light_fixture, True) + ifc4x3_light_fixture_relations = client.get_class_relations(uri_light_fixture, True) assert "Electrical unit for light-line system" and "Tubelight system" in [ r["className"] for r in ifc4x3_light_fixture_relations["classRelations"] ]