mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-23 15:02:06 +08:00
c5d5c5d1f3
date: 2025-10-24T00:30:59 master commit: 405631baf9685e171a0dd19547cb763f1b163d18
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")
|