django-elasticsearch-dsl
django-elasticsearch-dsl copied to clipboard
Changed setUp and tearDown to classmethods setUpClass and tearDownClass
To make more generic creating tests I changed setUp and tearDown to classmethods setUpClass and tearDownClass. Now you don't need create setUp and remeber to put everywhere ex. super().setUp() at the top of setUp()
With this change the index is created once and kept around until python exits. Definitely not the behavior you want. The index should be created at the beginning of each test and deleted after each test. The index should not be reused across tests.
Have you finally find a solution to setup and teardown between tests properly ?