mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-11-14 00:13:42 +08:00
19 lines
850 B
Python
19 lines
850 B
Python
import pytest
|
|
from openpilot.starpilot.tests.ford_lifecycle_helpers import FORD_FACTORIES, ford_joined as ford_joined, run_actual_producer
|
|
|
|
|
|
@pytest.fixture(autouse=True)
|
|
def configuration(monkeypatch, request):
|
|
monkeypatch.ford_angle = request.node.callspec.params['angle']
|
|
monkeypatch.ford_topology = request.node.callspec.params['topology']
|
|
|
|
|
|
@pytest.mark.parametrize('identity', [FORD_FACTORIES[11]])
|
|
@pytest.mark.parametrize('alpha', [True])
|
|
@pytest.mark.parametrize('hands_free', [False, True])
|
|
@pytest.mark.parametrize('angle', [False, True])
|
|
@pytest.mark.parametrize('topology', ['automatic', 'manual-multi'])
|
|
def test_main_off_neutral_cluster_and_actual_native_reengagement(ford_joined, monkeypatch, angle, topology):
|
|
monkeypatch.ford_native_10hz = True
|
|
run_actual_producer(ford_joined, monkeypatch, scenario='neutral-main-cadence')
|