예제 #1
0
 def hammett_add_fixture_result(self, result):
     from hammett.impl import fixture_scope
     if fixture_scope.get(self.current_fixture_setup,
                          'function') != self.scope:
         self.parent.hammett_add_fixture_result(result)
     else:
         self.fixture_results[self.current_fixture_setup] = result
예제 #2
0
파일: __init__.py 프로젝트: boxed/hammett
 def addfinalizer(self, x):
     assert Request.current_fixture_setup is not None
     from hammett.impl import fixture_scope
     if fixture_scope.get(Request.current_fixture_setup, 'function') != self.scope:
         self.parent.addfinalizer(x)
     else:
         self.finalizers.append(x)