Exemple #1
0
    def wrapper(self, request):

        def reset():
            EnvironmentManager.define_environment_cls(ThreadEnvironment)

        request.addfinalizer(reset)
        EnvironmentManager.define_environment_cls(MockEnvironment)
Exemple #2
0
 def check_bad_define_environment(self, env):
     try:
         EnvironmentManager.define_environment_cls(env)
         self.fail("Bad environment class")
     except EnvironmentException:
         pass
Exemple #3
0
 def tearDown(self):
     super(TestEnvironment, self).tearDown()
     EnvironmentManager.define_environment_cls(ThreadEnvironment)
Exemple #4
0
 def setUp(self):
     super(TestEnvironment, self).setUp()
     EnvironmentManager.define_environment_cls(MockEnvironment)
Exemple #5
0
 def check_bad_define_environment(self, env):
     try:
         EnvironmentManager.define_environment_cls(env)
         self.fail("Bad environment class")
     except EnvironmentException:
         pass
Exemple #6
0
 def tearDown(self):
     super(TestEnvironment, self).tearDown()
     EnvironmentManager.define_environment_cls(ThreadEnvironment)
Exemple #7
0
 def setUp(self):
     super(TestEnvironment, self).setUp()
     EnvironmentManager.define_environment_cls(MockEnvironment)
Exemple #8
0
 def reset():
     EnvironmentManager.define_environment_cls(ThreadEnvironment)