remove autouse in plugin fixtures so that plugin usage is optional
This commit is contained in:
parent
aaf758b706
commit
9986e46019
1 changed files with 3 additions and 3 deletions
|
|
@ -56,7 +56,7 @@ def DIR(request) -> DirManager:
|
|||
return dirmanager
|
||||
|
||||
|
||||
@pytest.fixture(scope="session", autouse=True)
|
||||
@pytest.fixture(scope="session")
|
||||
def ENV_FILES(DIR: DirManager) -> dict[int, EnvFile]:
|
||||
out: dict[int, EnvFile] = dict()
|
||||
for env_path in DIR.ENV_FILES.glob("*.env"):
|
||||
|
|
@ -69,13 +69,13 @@ def ENV_FILES(DIR: DirManager) -> dict[int, EnvFile]:
|
|||
return out
|
||||
|
||||
|
||||
@pytest.fixture(scope="session", autouse=True)
|
||||
@pytest.fixture(scope="session")
|
||||
def dotenv_config(request, ENV_FILES: dict[int, EnvFile]) -> dict[str, str]:
|
||||
runner_index = request.config.getoption("--runner_index")
|
||||
return ENV_FILES[runner_index].config
|
||||
|
||||
|
||||
@pytest.fixture(scope="session", autouse=True)
|
||||
@pytest.fixture(scope="session")
|
||||
def URL(dotenv_config: dict[str, str]) -> BaseUrl:
|
||||
return BaseUrl(netloc=dotenv_config["DOMAIN"])
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue