mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-18 22:33:33 +00:00
✅ add get_properties test validating that offset and limit are correctly applied
This commit is contained in:
@@ -35,3 +35,7 @@ def test_search_class():
|
|||||||
assert len(li) < 8 # I think it should be 4 but just validating it isn't overfetching with some space for future change
|
assert len(li) < 8 # I think it should be 4 but just validating it isn't overfetching with some space for future change
|
||||||
for l in li:
|
for l in li:
|
||||||
assert l in [_["name"] for _ in ss_heat_pump_sys["classes"]]
|
assert l in [_["name"] for _ in ss_heat_pump_sys["classes"]]
|
||||||
|
|
||||||
|
def test_get_properties():
|
||||||
|
pr = client.get_properties(ifc4x3_uri, offset=0, limit=5)
|
||||||
|
assert len(pr["properties"]) == 5
|
||||||
|
|||||||
Reference in New Issue
Block a user