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

Method setUp

unit-tests/test_command_record.py:20–25  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

18 expected_commands = []
19
20 def setUp(self):
21 self.communicate_mock = mock.patch('keepercommander.api.communicate').start()
22 self.communicate_mock.side_effect = KeeperApiHelper.communicate_command
23 self.communicate_mock = mock.patch('keepercommander.api.communicate_rest').start()
24 self.communicate_mock.side_effect = TestRecord.communicate_rest_success
25 TestRecord.expected_commands.clear()
26
27 def tearDown(self):
28 mock.patch.stopall()

Callers

nothing calls this directly

Calls 2

startMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected