35,36d34
< global_fixtures = []
<
73a72
> self._is_global = False
78,88d76
< def schedule_finalized(self, schedule):
< '''
< This method is called once the schedule of for tests is known.
< To enable tests to use the same fixture defintion for each execution
< fixtures must return a copy of themselves in this method.
<
< :returns: a copy of this fixture which will be setup/torndown
< when the test item this object is tied to is about to execute.
< '''
< return self.copy()
<
98,100d85
< def copy(self):
< return copy.deepcopy(self)
<
107a93,94
> def set_global(self):
> self._is_global = True
109,115c96,97
< def globalfixture(fixture):
< '''
< Store the given fixture as a global fixture. Its setup() method
< will be called before the first test is executed.
< '''
< global_fixtures.append(fixture)
< return fixture
---
> def is_global(self):
> return self._is_global