Skip to content

Commit

Permalink
Fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
KalobTaulien authored and gasman committed Jun 23, 2020
1 parent e542140 commit 04108e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def test_model_chooser_response(self):
self.assertEqual(content['meta']['total_count'], 1)

snippet = content['items'][0]
self.assertEqual(snippet['label'], 'tests.category')
self.assertEqual(snippet['model_label'], 'tests.category')
self.assertEqual(snippet['name'], 'Category')


Expand All @@ -52,7 +52,7 @@ def test_model_object_chooser(self):
self.assertEqual(content['meta']['previous'], None)

snippet = content['items'][0]
self.assertEqual(snippet['label'], 'tests.category')
self.assertEqual(snippet['model_label'], 'tests.category')
self.assertEqual(snippet['object_name'], 'red Cars')
self.assertEqual(snippet['name'], 'Cars')
self.assertEqual(snippet['colour'], 'red')
Expand Down
2 changes: 1 addition & 1 deletion tests/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,5 +265,5 @@ def test_list_snippet_models(self, get, post):
self.assertEqual(content['meta']['total_count'], 1)

snippet = content['items'][0]
self.assertEqual(snippet['label'], 'tests.category')
self.assertEqual(snippet['model_label'], 'tests.category')
self.assertEqual(snippet['name'], 'Category')

0 comments on commit 04108e9

Please sign in to comment.