Commit caab7974 authored by Jérome Perrin's avatar Jérome Perrin

testERP5TestNode: use mock to not isolate monkey patches

we don't want to patch spawn for all tests
parent 92f3adb8
...@@ -578,7 +578,7 @@ shared = true ...@@ -578,7 +578,7 @@ shared = true
call_parameter_list.append(args) call_parameter_list.append(args)
test_node = self.getTestNode() test_node = self.getTestNode()
test_node.process_manager.spawn = spawn with mock.patch.object(test_node.process_manager, 'spawn', side_effect=spawn):
runner = test_type_registry[my_test_type](test_node) runner = test_type_registry[my_test_type](test_node)
# Create and initialise/regenerate a nodetestsuite # Create and initialise/regenerate a nodetestsuite
node_test_suite = test_node.getNodeTestSuite('foo') node_test_suite = test_node.getNodeTestSuite('foo')
......
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