move conftest to root level
This commit is contained in:
parent
534eb229c9
commit
fa4c840374
1 changed files with 0 additions and 0 deletions
|
|
@ -1,20 +0,0 @@
|
|||
from pathlib import Path
|
||||
|
||||
import pytest
|
||||
from dotenv import dotenv_values
|
||||
|
||||
|
||||
def pytest_addoption(parser):
|
||||
parser.addoption(
|
||||
"--env_file_path",
|
||||
action="store",
|
||||
)
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def config(request):
|
||||
dotenv_path = request.config.getoption("--env_file_path")
|
||||
dotenv_path = Path(dotenv_path)
|
||||
assert dotenv_path.is_file()
|
||||
config = dotenv_values(dotenv_path)
|
||||
return config
|
||||
Loading…
Add table
Add a link
Reference in a new issue