Changes between Initial Version and Version 1 of Ticket #31074


Ignore:
Timestamp:
Dec 9, 2019, 1:01:17 AM (5 years ago)
Author:
Artem
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #31074 – Description

    initial v1  
    5151        if not cls.mixin:
    5252            return
    53         settings.MEDIA_ROOT = tempfile.mkdtemp()
    5453        if isinstance(cls.mixin, list):
    5554            name = ""
     
    7069        super(ModelMixinTestCase, cls).setUpClass()
    7170
     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
    7280       def setUp(self):
    7381               self.country = Country.objects.create(name="Test", code="EN")
Back to Top