Skip to content

Commit

Permalink
Tear down
Browse files Browse the repository at this point in the history
  • Loading branch information
einarmo committed Nov 21, 2023
1 parent f96c953 commit 9242f4f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/tests_integration/test_cdf_upload_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,12 @@ def tearDown(self):
self.client.time_series.delete(external_id=[self.time_series1, self.time_series2], ignore_unknown_ids=True)
self.client.events.delete(external_id=[self.event1, self.event2, self.event3], ignore_unknown_ids=True)
self.client.assets.delete(external_id=[self.asset1, self.asset2, self.asset3], ignore_unknown_ids=True)
# No ignore_unknown_ids in files, so we need to delete them one at a time
for file in [self.file1, self.file2]:
try:
self.client.files.delete(external_id=file)
except CogniteNotFoundError:
pass

def test_raw_upload_queue(self):
queue = RawUploadQueue(cdf_client=self.client, max_queue_size=500)
Expand Down

0 comments on commit 9242f4f

Please sign in to comment.