Fixed loaddata error with initial_data.json fixture. #97

This commit is contained in:
Fabio Caccamo
2020-09-15 09:49:50 +02:00
parent 28dfc70474
commit 826340c9be
2 changed files with 43 additions and 1 deletions
+4
View File
@@ -17,6 +17,10 @@ class AdminInterfaceFixturesTestCase(TestCase):
def __load_theme(self, theme_name):
call_command('loaddata', 'admin_interface_theme_%s.json' % (theme_name, ))
def test_import_initial_data(self):
call_command('loaddata', 'initial_data.json')
self.assertEqual(Theme.objects.count(), 1);
def test_import_all(self):
self.__load_theme('django')
self.__load_theme('bootstrap')