Commit 613bdeee authored by Łukasz Nowak's avatar Łukasz Nowak

Cleanup request harder.

The REQUEST object stays between tests and can create slightly differences in
running tests selectively or in packs.
parent aecd3322
......@@ -68,8 +68,12 @@ class TestSlapOSSlapToolMixin(testSlapOSMixin):
self.computer_id = self.computer.getReference()
def beforeTearDown(self):
def _cleaupREQUEST(self):
self.portal.REQUEST['request_instance'] = None
self.portal.REQUEST.headers = {}
def beforeTearDown(self):
self._cleaupREQUEST()
def _makeComplexComputer(self):
for i in range(1, 5):
......@@ -240,7 +244,7 @@ class TestSlapOSSlapToolMixin(testSlapOSMixin):
self.destroyed_software_instance.invalidate()
self.tic()
self.portal.REQUEST['request_instance'] = None
self._cleaupREQUEST()
class TestSlapOSSlapToolComputerAccess(TestSlapOSSlapToolMixin):
def _getPartitionXml(self):
......
136
\ No newline at end of file
137
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment