def test_on_episodes(*args, **kwargs): episodes = Registry.get_available_episodes() for episode in episodes: if episode in skip: continue # Load the next episode. Registry.set_current_episode(episode) Registry.load_current_episode() try: # Call the test method. function(*args, **kwargs) except Exception: # Inform about which episode failed and propagate the failure. print('Failed test in episode "{}"'.format(episode)) raise
def setUp(self): Registry.load_current_episode()
def test_default_episode(self): Registry.load_current_episode() self.assertEqual(Registry.get_loaded_episode_name(), config.DEFAULT_EPISODE_NAME)
def setUp(self): self.reset_gss() Registry.load_current_episode()