MCPcopy Index your code
hub / github.com/tiny-pilot/tinypilot / setUp

Method setUp

app/version_test.py:14–20  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

12class LocalVersionTest(TestCase):
13
14 def setUp(self):
15 # Run all unit tests with debug mode disabled.
16 is_debug_patch = mock.patch.object(version,
17 '_is_debug',
18 return_value=False)
19 self.addCleanup(is_debug_patch.stop)
20 is_debug_patch.start()
21
22 def test_local_version_when_file_exists(self):
23 with tempfile.NamedTemporaryFile('w',

Callers

nothing calls this directly

Calls 1

startMethod · 0.80

Tested by

no test coverage detected