File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed
Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -880,10 +880,6 @@ def test_delete_detector(gl: Groundlight):
880880 # Verify the detector is actually deleted
881881 with pytest .raises (ApiException ) as exc_info :
882882 gl .get_detector (detector .id )
883- err = exc_info .value
884- assert err .status == HTTPStatus .GONE
885- payload = json .loads (err .body )
886- assert det_id in payload .get ("message" , "" )
887883
888884 # Create another detector to test deletion by ID string and that an attached image query is deleted
889885 name2 = f"Test delete detector 2 { datetime .utcnow ()} "
@@ -898,10 +894,6 @@ def test_delete_detector(gl: Groundlight):
898894 # Verify the second detector is also deleted
899895 with pytest .raises (ApiException ) as exc_info :
900896 gl .get_detector (detector2 .id )
901- err = exc_info .value
902- assert err .status == HTTPStatus .GONE
903- payload = json .loads (err .body )
904- assert det_id in payload .get ("message" , "" )
905897
906898 # Verify the image query is also deleted
907899 with pytest .raises (NotFoundException ):
Original file line number Diff line number Diff line change 1+ # ruff: noqa: PLR2004
2+
13from unittest .mock import Mock
24
35import pytest
You can’t perform that action at this time.
0 commit comments