コード例 #1
0
        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
コード例 #2
0
 def setUp(self):
     Registry.load_current_episode()
コード例 #3
0
 def test_default_episode(self):
     Registry.load_current_episode()
     self.assertEqual(Registry.get_loaded_episode_name(),
                      config.DEFAULT_EPISODE_NAME)
コード例 #4
0
 def setUp(self):
     self.reset_gss()
     Registry.load_current_episode()