diff --git a/src/objecttypes/tests/v2/test_objectversion_api.py b/src/objecttypes/tests/v2/test_objectversion_api.py index 21bef8da..e18d58ba 100644 --- a/src/objecttypes/tests/v2/test_objectversion_api.py +++ b/src/objecttypes/tests/v2/test_objectversion_api.py @@ -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}