MCPcopy Create free account
hub / github.com/tiny-pilot/tinypilot / test_disregards_invalid_json

Method test_disregards_invalid_json

app/network_test.py:123–128  ·  view source on GitHub ↗
(self, mock_cmd)

Source from the content-addressed store, hash-verified

121
122 @mock.patch.object(subprocess, 'check_output')
123 def test_disregards_invalid_json(self, mock_cmd):
124 mock_cmd.return_value = '[{"address'
125 self.assertEqual(
126 network.InterfaceStatus('eth0', False, None, None),
127 network.inspect_interface('eth0'),
128 )
129
130
131class GetNetworkInterfacesTest(unittest.TestCase):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected