Skip to content

Commit

Permalink
🧪 [maykinmedia/objects-api#361] add regression test for listing versi…
Browse files Browse the repository at this point in the history
…ons with incorrect objecttype uuid
  • Loading branch information
annashamray committed Jun 11, 2024
1 parent 07c57b2 commit a26a68f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/objecttypes/tests/v2/test_objectversion_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,16 @@ def test_get_versions(self):
},
)

def test_get_versions_incorrect_format_uuid(self):
"""
Regression test for https://github.com/maykinmedia/objects-api/issues/361
"""
url = reverse("objectversion-list", args=["aaa"])

response = self.client.get(url)

self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND)

def test_create_version(self):
object_type = ObjectTypeFactory.create()
data = {"jsonSchema": JSON_SCHEMA, "status": ObjectVersionStatus.published}
Expand Down

0 comments on commit a26a68f

Please sign in to comment.