コード例 #1
0
 def tearDown(self):
     """
     Cleans up the test environment.
     """
     test_utils.clean_db()
     test_utils.clean_storage()
     User.objects.all().delete()
コード例 #2
0
 def tearDownClass(cls):
     """
     Clean up the test
     """
     test_utils.clean_db()
     test_utils.clean_storage()
     User.objects.all().delete()
コード例 #3
0
ファイル: test_view.py プロジェクト: JuliBakagianni/CEF-ELRC
 def tearDown(self):
     """
     Clean up the test
     """
     test_utils.clean_resources_db()
     test_utils.clean_storage()
     test_utils.clean_user_db()
コード例 #4
0
ファイル: test_editor.py プロジェクト: jvivaldi/META-SHARE
    def tearDown(self):
        test_utils.clean_resources_db()
        test_utils.clean_storage()
        test_utils.clean_user_db()

        super(EditorTest, self).tearDown()
        self.assertEqual([], self.verification_errors)
コード例 #5
0
ファイル: test_view.py プロジェクト: hpusset/ELRI
 def tearDown(self):
     """
     Cleans up the test environment.
     """
     test_utils.clean_resources_db()
     test_utils.clean_storage()
     test_utils.clean_user_db()
コード例 #6
0
ファイル: test_view.py プロジェクト: JuliBakagianni/CEF-ELRC
 def tearDown(self):
     """
     Cleans up the test environment.
     """
     test_utils.clean_resources_db()
     test_utils.clean_storage()
     test_utils.clean_user_db()
コード例 #7
0
ファイル: test_view.py プロジェクト: hpusset/ELRI
 def tearDown(self):
     """
     Clean up the test
     """
     test_utils.clean_resources_db()
     test_utils.clean_storage()
     test_utils.clean_user_db()
コード例 #8
0
ファイル: tests.py プロジェクト: MiltosD/ELRC2
 def tearDown(self):
     """
     Clean up the test
     """
     test_utils.clean_resources_db()
     test_utils.clean_storage()
     test_utils.clean_user_db()
     test_utils.set_index_active(True)
コード例 #9
0
 def tearDownClass(cls):
     """
     Clean up the test
     """
     test_utils.clean_resources_db()
     test_utils.clean_storage()
     test_utils.clean_user_db()
     LOGGER.info("finished '{}' tests".format(cls.__name__))
コード例 #10
0
 def tearDownClass(cls):
     """
     Clean up the test
     """
     test_utils.clean_resources_db()
     test_utils.clean_storage()
     test_utils.clean_user_db()
     LOGGER.info("finished '{}' tests".format(cls.__name__))
コード例 #11
0
 def tearDown(self):
     """
     Clean up the test
     """
     test_utils.clean_resources_db()
     test_utils.clean_storage()
     settings.MAX_VIEW_INTERVAL = self.max_view_interval_backup
     settings.MAX_DOWNLOAD_INTERVAL = self.max_download_interval_backup 
コード例 #12
0
 def tearDown(self):
     """
     Clean up the test
     """
     test_utils.clean_resources_db()
     test_utils.clean_storage()
     test_utils.clean_user_db()
     test_utils.set_index_active(True)
コード例 #13
0
ファイル: tests.py プロジェクト: MiltosD/CEFELRC
 def tearDown(self):
     """
     Clean up the test
     """
     test_utils.clean_resources_db()
     test_utils.clean_storage()
     settings.MAX_VIEW_INTERVAL = self.max_view_interval_backup
     settings.MAX_DOWNLOAD_INTERVAL = self.max_download_interval_backup
コード例 #14
0
 def tearDown(self):
     """
     Clean up the test
     """
     try:
         test_utils.clean_resources_db()
     except:
         pass
     test_utils.clean_storage()
コード例 #15
0
ファイル: tests.py プロジェクト: ELDAELRA/META-SHARE-3.1.1
 def tearDown(self):
     """
     Clean up the test
     """
     try:
         test_utils.clean_resources_db()
     except:
         pass
     test_utils.clean_storage()
コード例 #16
0
ファイル: test_view.py プロジェクト: hpusset/ELRI
    def tearDownClass(cls):
        """
        Clean up the test
        """
        LOGGER.info("finished '{}' tests".format(cls.__name__))

        # disable indexing during import
        test_utils.set_index_active(False)

        test_utils.clean_resources_db()
        test_utils.clean_storage()
        OBJECT_XML_CACHE.clear()

        # enable indexing
        test_utils.set_index_active(True)
コード例 #17
0
ファイル: test_nightly.py プロジェクト: MiltosD/ELRC2
 def tearDown(self):
     """
     Clean up the test
     """
     # disable indexing during import
     test_utils.set_index_active(False)
     
     test_utils.clean_resources_db()
     test_utils.clean_storage()
     OBJECT_XML_CACHE.clear()
     
     # enable indexing 
     test_utils.set_index_active(True)
 
     # update index
     rebuild_index.Command().handle()
コード例 #18
0
 def tearDownClass(cls):
     """
     Clean up the test
     """
     LOGGER.info("finished '{}' tests".format(cls.__name__))
     
     # disable indexing during import
     test_utils.set_index_active(False)
     
     test_utils.clean_resources_db()
     test_utils.clean_storage()
     OBJECT_XML_CACHE.clear()
     
     # enable indexing 
     test_utils.set_index_active(True)
 
     # update index
     update_index.Command().handle(using=[settings.TEST_MODE_NAME,])
コード例 #19
0
ファイル: test_view.py プロジェクト: JuliBakagianni/CEF-ELRC
 def tearDownClass(cls):
     """
     Clean up the test
     """
     LOGGER.info("finished '{}' tests".format(cls.__name__))
     
     # disable indexing during import
     test_utils.set_index_active(False)
     
     test_utils.clean_resources_db()
     test_utils.clean_storage()
     OBJECT_XML_CACHE.clear()
     
     # enable indexing 
     test_utils.set_index_active(True)
 
     # update index
     from django.core.management import call_command
     call_command('rebuild_index', interactive=False, using=TEST_MODE_NAME)
コード例 #20
0
    def tearDownClass(cls):
        """
        Clean up the test
        """
        LOGGER.info("finished '{}' tests".format(cls.__name__))

        # disable indexing during import
        test_utils.set_index_active(False)

        test_utils.clean_resources_db()
        test_utils.clean_storage()
        OBJECT_XML_CACHE.clear()

        # enable indexing
        test_utils.set_index_active(True)

        # update index
        from django.core.management import call_command
        call_command('rebuild_index', interactive=False, using=TEST_MODE_NAME)
コード例 #21
0
ファイル: tests.py プロジェクト: MiltosD/ELRC2
 def tearDown(self):
     test_utils.clean_resources_db()
     test_utils.clean_storage()
     test_utils.clean_user_db()
コード例 #22
0
 def tearDown(self):
     """
     Clean DB and storage folder after testing.
     """
     test_utils.clean_db()
     test_utils.clean_storage()
コード例 #23
0
 def tearDown(self):
     """
     Clean up the test
     """
     test_utils.clean_db()
     test_utils.clean_storage()
コード例 #24
0
 def tearDown(self):
     """
     Cleans the database after a test.
     """
     test_utils.clean_db()
     test_utils.clean_storage()
コード例 #25
0
 def tearDownClass(cls):
     # delete content of storage folder
     test_utils.clean_storage()
     test_utils.set_index_active(True)
     LOGGER.info("finished '{}' tests".format(cls.__name__))
コード例 #26
0
ファイル: tests.py プロジェクト: themiszamani/META-SHARE
 def tearDownClass(cls):
     test_utils.clean_resources_db()
     test_utils.clean_storage()
     test_utils.clean_user_db()
     set_index_active(True)
     LOGGER.info("finished '{}' tests".format(cls.__name__))
コード例 #27
0
 def tearDownClass(cls):
     # delete content of storage folder
     test_utils.clean_storage()
     test_utils.set_index_active(True)
コード例 #28
0
 def tearDown(self):
     """
     Cleans the database after a test.
     """
     test_utils.clean_resources_db()
     test_utils.clean_storage()
コード例 #29
0
 def tearDownClass(cls):
     User.objects.all().delete()
     test_utils.clean_db()
     test_utils.clean_storage()
     set_index_active(True)
コード例 #30
0
    def tearDown(self):
        test_utils.clean_resources_db()
        test_utils.clean_storage()
        test_utils.clean_user_db()

        super(ExampleSeleniumTest, self).tearDown()
コード例 #31
0
ファイル: tests.py プロジェクト: jvivaldi/META-SHARE
 def tearDownClass(cls):
     test_utils.clean_resources_db()
     test_utils.clean_storage()
     test_utils.clean_user_db()
     set_index_active(True)
     LOGGER.info("finished '{}' tests".format(cls.__name__))
コード例 #32
0
ファイル: tests.py プロジェクト: portulanclarin/repository
 def tearDown(self):
     """
     Removes the storage object instance from the database after testing.
     """
     test_utils.clean_resources_db()
     test_utils.clean_storage()
コード例 #33
0
ファイル: test_example.py プロジェクト: MiltosD/ELRC2
    def tearDown(self):
        test_utils.clean_resources_db()
        test_utils.clean_storage()
        test_utils.clean_user_db()

        super(ExampleSeleniumTest, self).tearDown()
コード例 #34
0
ファイル: tests.py プロジェクト: MiltosD/ELRC2
 def tearDown(self):
     """
     Clean DB and storage folder after testing.
     """
     test_utils.clean_resources_db()
     test_utils.clean_storage()