diff options
Diffstat (limited to 'ishtar_common/tests.py')
-rw-r--r-- | ishtar_common/tests.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/ishtar_common/tests.py b/ishtar_common/tests.py index e3af9024f..1ddc94cb2 100644 --- a/ishtar_common/tests.py +++ b/ishtar_common/tests.py @@ -1552,7 +1552,7 @@ class AdminGenTypeTest(TestCase): models.Format, models.SupportType, ] - models_with_data = gen_models + [models.ImporterModel] + models_with_data = gen_models + [models.ImporterModel, models.JsonDataField] models = models_with_data module_name = "ishtar_common" ishtar_apps = [ @@ -1569,6 +1569,14 @@ class AdminGenTypeTest(TestCase): "ishtar_common.ProfileTypeSummary", ] + def extra_setup_data(self): + models.JsonDataField.objects.create( + name="Extra data", + content_type=ContentType.objects.get(model="operation"), + key="extra_data", + value_type="T" + ) + def setUp(self): self.password = "mypassword" self.username = "myuser" @@ -1579,6 +1587,7 @@ class AdminGenTypeTest(TestCase): user.save() self.client = Client() self.client.login(username=self.username, password=self.password) + self.extra_setup_data() def test_listing_and_detail(self): models = [] |