MCPcopy Create free account
hub / github.com/Keeper-Security/Commander / setUp

Method setUp

unit-tests/test_command_register.py:19–24  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

17 expected_commands = []
18
19 def setUp(self):
20 self.communicate_mock = mock.patch('keepercommander.api.run_command').start()
21 self.communicate_mock.side_effect = TestRegister.communicate_success
22 self.communicate_mock = mock.patch('keepercommander.api.communicate_rest').start()
23 self.communicate_mock.side_effect = TestRegister.communicate_rest_success
24 TestRegister.expected_commands.clear()
25
26 def tearDown(self):
27 mock.patch.stopall()

Callers

nothing calls this directly

Calls 2

startMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected