mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-18 14:34:23 +01:00
Co-authored-by: JS <38794445+jonathansheets517@users.noreply.github.com> Co-authored-by: Richard Beales <rich@richbeales.net>
18 lines
397 B
Python
18 lines
397 B
Python
import pytest
|
|
|
|
|
|
def pytest_addoption(parser):
|
|
parser.addoption(
|
|
"--level", action="store", default=None, type=int, help="Specify test level"
|
|
)
|
|
|
|
|
|
def pytest_configure(config):
|
|
config.option.level = config.getoption("--level")
|
|
|
|
|
|
@pytest.fixture
|
|
def user_selected_level(request) -> int:
|
|
## used for challenges in the goal oriented tests
|
|
return request.config.option.level
|