Skip to content

Commit

Permalink
again try to fix cla issues (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdc97 authored Aug 30, 2023
1 parent 05d1927 commit 71397ce
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
6 changes: 6 additions & 0 deletions foxglove_data_platform/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -577,6 +577,12 @@ def delete_import(self, *, device_id: Optional[str] = None, import_id: str):
)
json_or_raise(response)

def delete_recording(self, *, recording_id: str):
response = requests.delete(
self.__url__(f"/v1/recordings/{recording_id}"), headers=self.__headers
)
json_or_raise(response)

def get_imports(
self,
*,
Expand Down
15 changes: 15 additions & 0 deletions tests/test_recordings.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,21 @@
fake = Faker()


@responses.activate
def test_delete_recording():
recording_id = fake.uuid4()
responses.add(
responses.DELETE,
api_url(f"/v1/recordings/{recording_id}"),
json={"success": True, "id": recording_id},
)
client = Client("test")
try:
client.delete_recording(recording_id=recording_id)
except:
assert False


@responses.activate
def test_get_recordings():
device_id = fake.uuid4()
Expand Down

0 comments on commit 71397ce

Please sign in to comment.