fixture.py (12882:dd87d7f2f3e5) | fixture.py (13790:ed7f0a384c22) |
---|---|
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 | 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 def skip_cleanup(self): 102 ''' 103 If this method is called, then we should make sure that nothing is 104 done when the teardown() function is called. 105 ''' 106 pass |
|
101 | 107 |
108 |
|
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 | 109def globalfixture(fixture): 110 ''' 111 Store the given fixture as a global fixture. Its setup() method 112 will be called before the first test is executed. 113 ''' 114 global_fixtures.append(fixture) 115 return fixture |