add more args to condition function, add ConditionArgs, homogenize attribute names
This commit is contained in:
parent
65aed3e31f
commit
8c500da277
5 changed files with 39 additions and 24 deletions
|
|
@ -8,7 +8,7 @@ from pathlib import Path
|
|||
|
||||
import pytest
|
||||
from dotenv import dotenv_values
|
||||
from imbox import Imbox
|
||||
from imbox import Imbox # type: ignore
|
||||
from playwright.sync_api import BrowserContext, expect
|
||||
from pytest import Parser
|
||||
|
||||
|
|
@ -73,7 +73,7 @@ def env_files(DIR: DirManager) -> list[EnvFile]:
|
|||
result = re.search(r"(\d+)-*", env_path.name)
|
||||
assert result
|
||||
runner_index = int(result[1])
|
||||
env_files_dict[runner_index] = EnvFile(env_path=env_path, config=config, env_type=env_type)
|
||||
env_files_dict[runner_index] = EnvFile(env_path=env_path, env_config=config, env_type=env_type)
|
||||
keys = list(env_files_dict.keys())
|
||||
keys.sort()
|
||||
return [env_files_dict[key] for key in keys]
|
||||
|
|
@ -83,7 +83,7 @@ def env_files(DIR: DirManager) -> list[EnvFile]:
|
|||
def env_config(request, env_files: list[EnvFile]) -> dict[str, str]:
|
||||
"""Current env_config"""
|
||||
runner_index = request.config.getoption("--runner_index")
|
||||
return env_files[runner_index].config
|
||||
return env_files[runner_index].env_config
|
||||
|
||||
|
||||
@pytest.fixture(scope="session")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue