1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Update tests to match new string representation of ContentTypes

This commit is contained in:
Jeremy Stretch
2020-02-19 15:31:15 -05:00
parent 7b93155b06
commit be23230938
2 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ class AppTest(APITestCase):
# Graph
content_types = ContentType.objects.filter(GRAPH_MODELS)
graph_type_choices = {
"{}.{}".format(ct.app_label, ct.model): ct.name for ct in content_types
"{}.{}".format(ct.app_label, ct.model): str(ct) for ct in content_types
}
self.assertEqual(choices_to_dict(response.data.get('graph:type')), graph_type_choices)
self.assertEqual(choices_to_dict(response.data.get('graph:template_language')), TemplateLanguageChoices.as_dict())