Changes between Initial Version and Version 1 of Ticket #31074
- Timestamp:
- Dec 9, 2019, 1:01:17 AM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #31074 – Description
initial v1 51 51 if not cls.mixin: 52 52 return 53 settings.MEDIA_ROOT = tempfile.mkdtemp()54 53 if isinstance(cls.mixin, list): 55 54 name = "" … … 70 69 super(ModelMixinTestCase, cls).setUpClass() 71 70 71 @classmethod 72 def tearDownClass(cls): 73 if not cls.mixin: 74 return 75 # Delete the schema for the test model 76 with connection.schema_editor() as schema_editor: 77 schema_editor.delete_model(cls.model) 78 super(ModelMixinTestCase, cls).tearDownClass() 79 72 80 def setUp(self): 73 81 self.country = Country.objects.create(name="Test", code="EN")