molecule-hetznercloud/molecule_hetznercloud/test/unit/model/v2/conftest.py
Luke Murphy 4db4d00d45
Some checks failed
continuous-integration/drone/push Build is failing
Remove license headers
This project is not included under the Molecule project source code tree
anymore and hence has been relicensed. These headers are being removed
then.
2020-04-24 13:30:13 +02:00

26 lines
508 B
Python

import os
import pytest
from molecule import util
@pytest.fixture
def _molecule_file():
return os.path.join(
os.path.dirname(__file__),
os.path.pardir,
os.path.pardir,
os.path.pardir,
"resources",
"molecule_hetznercloud.yml",
)
@pytest.fixture
def _config(_molecule_file, request):
d = util.safe_load(open(_molecule_file))
if hasattr(request, "param"):
d = util.merge_dicts(d, request.getfixturevalue(request.param))
return d