Skip to content

Commit

Permalink
fix MagicMock error
Browse files Browse the repository at this point in the history
  • Loading branch information
abdullah-cognite committed Dec 18, 2024
1 parent 98a1388 commit ddd34a4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cognite/client/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@ def __init__(self, *args: Any, **kwargs: Any) -> None:
self.raw.tables = MagicMock(spec_set=RawTablesAPI)

self.relationships = MagicMock(spec_set=RelationshipsAPI)
self.simulators = MagicMock(spec_set=SimulatorsAPI)

self.simulators = MagicMock(spec=SimulatorsAPI)
self.simulators.integrations = MagicMock(spec_set=SimulatorIntegrationsAPI)

self.sequences = MagicMock(spec=SequencesAPI)
Expand Down
2 changes: 2 additions & 0 deletions tests/tests_integration/test_api/test_simulators/seed/data.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This file contains the data used to seed the test environment for the simulator tests

data_set_id = 97552494921583

resource_names = {
Expand Down

0 comments on commit ddd34a4

Please sign in to comment.