def tearDown(self): test_utils.restore_initial_data() # some tests might create a .bitcon in the home dir test_utils.delete_home_bitcoin_subdir(self.home_bitcoin_subdir_exists) test_utils.stop_bitcoin_core_apps()
def tearDown(self): # make sure nothing is left running test_utils.stop_bitcoin_core_apps() if is_backup_running(): log('interrupting backup') views.InterruptBackup.as_view()(self.factory.get('/bitcoin/interrupt_backup/')) sleep(20) # some tests might create a .bitcon in the home dir test_utils.delete_home_bitcoin_subdir(self.home_bitcoin_subdir_exists)
def tearDown(self): # make sure nothing is left running if is_backup_running(): InterruptBackup.as_view()( self.factory.get('/bitcoin/interrupt_backup/')) sleep(20) # make sure bitcoin-qt shuts down; 60 secs may not be enough, # but don't want to waste time waiting needlessly if is_bitcoin_qt_running(): sleep(60) test_utils.stop_bitcoin_qt() # some tests might create a .bitcom in the home dir test_utils.delete_home_bitcoin_subdir(self.home_bitcoin_subdir_exists)
def tearDown(self): # some tests might create a .bitcon in the home dir test_utils.delete_home_bitcoin_subdir(self.home_bitcoin_subdir_exists)