1# Copyright (c) 2017 Mark D. Hill and David A. Wood
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met: redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer;
8# redistributions in binary form must reproduce the above copyright
--- 84 unchanged lines hidden (view full) ---
93 pass
94
95 def teardown(self, testitem):
96 pass
97
98 def copy(self):
99 return copy.deepcopy(self)
100
101
102def globalfixture(fixture):
103 '''
104 Store the given fixture as a global fixture. Its setup() method
105 will be called before the first test is executed.
106 '''
107 global_fixtures.append(fixture)
108 return fixture
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met: redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer;
8# redistributions in binary form must reproduce the above copyright
--- 84 unchanged lines hidden (view full) ---
93 pass
94
95 def teardown(self, testitem):
96 pass
97
98 def copy(self):
99 return copy.deepcopy(self)
100
101
102def globalfixture(fixture):
103 '''
104 Store the given fixture as a global fixture. Its setup() method
105 will be called before the first test is executed.
106 '''
107 global_fixtures.append(fixture)
108 return fixture