blueprints: open fixtures in read only mode

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2022-11-22 21:38:44 +01:00
parent 4a17795df9
commit ed7bef9dbf
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ def reconcile_app(app_name: str):
def load_yaml_fixture(path: str, **kwargs) -> str:
"""Load yaml fixture, optionally formatting it with kwargs"""
with open(Path(__file__).resolve().parent / Path(path), "r+", encoding="utf-8") as _fixture:
with open(Path(__file__).resolve().parent / Path(path), "r", encoding="utf-8") as _fixture:
fixture = _fixture.read()
try:
return fixture % kwargs