mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-09-29 19:03:59 +08:00
Konik Tooling
This commit is contained in:
@@ -95,10 +95,15 @@ class TestLogReader:
|
||||
(f"{TEST_ROUTE}/13/14/a", f"{TEST_ROUTE}/0:1/a"),
|
||||
(f"https://connect.comma.ai/{TEST_ROUTE}/13/14", f"{TEST_ROUTE}/0:1"),
|
||||
(f"https://connect.comma.ai/{TEST_ROUTE}/13/14/a", f"{TEST_ROUTE}/0:1/a"),
|
||||
(f"https://connect.konik.ai/{TEST_ROUTE}/13/14", f"{TEST_ROUTE}/0:1"),
|
||||
(f"https://stable.konik.ai/{TEST_ROUTE}/13/14/a", f"{TEST_ROUTE}/0:1/a"),
|
||||
])
|
||||
def test_parse_indirect_accepts_second_window_route_style(self, identifier, expected):
|
||||
assert parse_indirect(identifier) == expected
|
||||
|
||||
def test_parse_indirect_accepts_konik_useradmin(self):
|
||||
assert parse_indirect(f"https://useradmin.konik.ai/?onebox={TEST_ROUTE}") == TEST_ROUTE
|
||||
|
||||
@pytest.mark.parametrize("cache_enabled", [True, False])
|
||||
def test_direct_parsing(self, mocker, cache_enabled):
|
||||
file_exists_mock = mocker.patch("openpilot.tools.lib.filereader.file_exists")
|
||||
|
||||
Reference in New Issue
Block a user