Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lpereiracgn committed Dec 9, 2024
1 parent 9798475 commit c076dc9
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,13 +125,17 @@ def test_list_integrations(self, cognite_client: CogniteClient) -> None:
assert len(integrations) > 0

def test_filter_integrations(self, cognite_client: CogniteClient, seed_resource_names) -> None:
all_integrations = cognite_client.simulators.integrations.list()
active_integrations = cognite_client.simulators.integrations.list(
filter=SimulatorIntegrationFilter(active=True)
)
filtered_integrations = cognite_client.simulators.integrations.list(
filter=SimulatorIntegrationFilter(simulator_external_ids=[seed_resource_names["simulator_external_id"]])
)

assert all_integrations[0].external_id == "w"
assert len(all_integrations) == 1

assert len(active_integrations) > 0
assert len(filtered_integrations) > 0

Expand Down

0 comments on commit c076dc9

Please sign in to comment.