Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
haakonvt authored Sep 5, 2024
1 parent 76185ed commit b5d8137
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1087,15 +1087,11 @@ def test_listing_global_nodes(self, cognite_client: CogniteClient) -> None:
from cognite.client.data_classes.data_modeling.cdm.v1 import CogniteUnit

# Space must be explicitly specified or nothing will be returned:
no_nodes = cognite_client.data_modeling.instances.list(
sources=CogniteUnit.get_source(),
)
no_nodes = cognite_client.data_modeling.instances.list(sources=CogniteUnit.get_source())
assert len(no_nodes) == 0

nodes = cognite_client.data_modeling.instances.list(
space="cdf_cdm_units",
sources=CogniteUnit.get_source(),
limit=5,
space="cdf_cdm_units", sources=CogniteUnit.get_source(), limit=5
)
assert len(nodes) == 5

Expand Down

0 comments on commit b5d8137

Please sign in to comment.