mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-06 22:22:11 +08:00
6c438b8902
* fix test * this? * fix * this? * deprecation warning inside * comment old-commit-hash: 950aeae5443123e59177444d06a7654a41504373
14 lines
490 B
Python
Executable File
14 lines
490 B
Python
Executable File
#!/usr/bin/env python3
|
|
import pytest
|
|
import warnings
|
|
# Since metadrive depends on pkg_resources, and pkg_resources is deprecated as an API
|
|
warnings.filterwarnings("ignore", category=DeprecationWarning)
|
|
|
|
from openpilot.tools.sim.bridge.metadrive.metadrive_bridge import MetaDriveBridge
|
|
from openpilot.tools.sim.tests.test_sim_bridge import TestSimBridgeBase
|
|
|
|
@pytest.mark.slow
|
|
class TestMetaDriveBridge(TestSimBridgeBase):
|
|
def create_bridge(self):
|
|
return MetaDriveBridge(False, False)
|