rename dotenv_config fixture to env_config
This commit is contained in:
parent
c666e8de4c
commit
14c1a1c1f6
9 changed files with 31 additions and 31 deletions
|
|
@ -81,16 +81,16 @@ def ENV_FILES(DIR: DirManager) -> dict[int, EnvFile]:
|
|||
|
||||
|
||||
@pytest.fixture(scope="session")
|
||||
def dotenv_config(request, ENV_FILES: dict[int, EnvFile]) -> dict[str, str]:
|
||||
def env_config(request, ENV_FILES: dict[int, EnvFile]) -> dict[str, str]:
|
||||
"""Current env_config"""
|
||||
runner_index = request.config.getoption("--runner_index")
|
||||
return ENV_FILES[runner_index].config
|
||||
|
||||
|
||||
@pytest.fixture(scope="session")
|
||||
def URL(dotenv_config: dict[str, str]) -> BaseUrl:
|
||||
def URL(env_config: dict[str, str]) -> BaseUrl:
|
||||
"""BaseUrl object based on current DOMAIN"""
|
||||
return BaseUrl(netloc=dotenv_config["DOMAIN"])
|
||||
return BaseUrl(netloc=env_config["DOMAIN"])
|
||||
|
||||
|
||||
@pytest.fixture(scope="session")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue