2023-09-20 10:35:57 -07:00
|
|
|
#!/usr/bin/env python3
|
2024-01-13 21:16:35 -08:00
|
|
|
import pytest
|
2024-05-18 17:04:22 -04:00
|
|
|
import warnings
|
|
|
|
|
# Since metadrive depends on pkg_resources, and pkg_resources is deprecated as an API
|
|
|
|
|
warnings.filterwarnings("ignore", category=DeprecationWarning)
|
2023-09-20 10:35:57 -07:00
|
|
|
|
2023-09-28 17:50:01 -07:00
|
|
|
from openpilot.tools.sim.bridge.metadrive.metadrive_bridge import MetaDriveBridge
|
2023-09-20 10:35:57 -07:00
|
|
|
from openpilot.tools.sim.tests.test_sim_bridge import TestSimBridgeBase
|
|
|
|
|
|
2024-01-13 21:16:35 -08:00
|
|
|
@pytest.mark.slow
|
2024-05-20 17:41:31 -04:00
|
|
|
@pytest.mark.filterwarnings("ignore::pyopencl.CompilerWarning") # Unimportant warning of non-empty compile log
|
2023-09-20 10:35:57 -07:00
|
|
|
class TestMetaDriveBridge(TestSimBridgeBase):
|
|
|
|
|
def create_bridge(self):
|
2024-02-02 15:06:05 -05:00
|
|
|
return MetaDriveBridge(False, False)
|