mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-09-30 19:33:49 +08:00
test for the strip_bz2_extension method (#24826)
This commit is contained in:
@@ -120,6 +120,13 @@ class TestAthenadMethods(unittest.TestCase):
|
||||
self.assertTrue(resp, 'list empty!')
|
||||
self.assertCountEqual(resp, expected)
|
||||
|
||||
def test_strip_bz2_extension(self):
|
||||
fn = os.path.join(athenad.ROOT, 'qlog.bz2')
|
||||
Path(fn).touch()
|
||||
if fn.endswith('.bz2'):
|
||||
self.assertEqual(athenad.strip_bz2_extension(fn), fn[:-4])
|
||||
|
||||
|
||||
@with_http_server
|
||||
def test_do_upload(self, host):
|
||||
fn = os.path.join(athenad.ROOT, 'qlog.bz2')
|
||||
|
||||
Reference in New Issue
Block a user