MCPcopy Create free account
hub / github.com/comaps/comaps / setUp

Method setUp

tools/python/maps_generator/tests/test_logs_reader.py:13–22  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

11
12class TestLogsReader(unittest.TestCase):
13 def setUp(self):
14 self.dir = tempfile.TemporaryDirectory()
15 with open(
16 os.path.join(self.dir.name, "Czech_Jihovychod_Jihomoravsky kraj.log"), "w"
17 ) as file:
18 file.write(LOG_STRING)
19
20 logs = list(logs_reader.LogsReader(self.dir.name))
21 self.assertEqual(len(logs), 1)
22 self.log = logs[0]
23
24 def tearDown(self):
25 self.dir.cleanup()

Callers

nothing calls this directly

Calls 2

joinMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected