Skip to content

Commit

Permalink
use Resource proxy delete in test, re #11772
Browse files Browse the repository at this point in the history
  • Loading branch information
whatisgalen committed Feb 10, 2025
1 parent b0a4c7f commit ca4c0f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/views/resource_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,8 @@ def test_resource_report_good(self):

def test_resource_report_bad(self):
self.client.login(username="admin", password="admin")
ResourceInstance.objects.delete(resourceinstanceid=self.resource_instance_id)
resource = Resource.objects.get(resourceinstanceid=self.resource_instance_id)
resource.delete()
url = reverse(
"resource_report", kwargs={"resourceid": self.resource_instance_id}
)
Expand Down

0 comments on commit ca4c0f4

Please sign in to comment.