mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-20 05:22:03 +08:00
161005a0c1
date: 2025-11-19T19:10:11 master commit: a29fdbd02407d41ecbcc69d151bb4837bfba3cbc
9 lines
258 B
Python
9 lines
258 B
Python
import pytest
|
|
|
|
def pytest_addoption(parser):
|
|
parser.addoption("--test_duration", action="store", default=60, type=int, help="Seconds to run metadrive drive")
|
|
|
|
@pytest.fixture
|
|
def test_duration(request):
|
|
return request.config.getoption("--test_duration")
|