From ed7bef9dbf5715763d9a9edb39675f4c67af2e5b Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Tue, 22 Nov 2022 21:38:44 +0100 Subject: [PATCH] blueprints: open fixtures in read only mode Signed-off-by: Jens Langhammer --- authentik/blueprints/tests/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authentik/blueprints/tests/__init__.py b/authentik/blueprints/tests/__init__.py index 2bfef0718..4f62d668b 100644 --- a/authentik/blueprints/tests/__init__.py +++ b/authentik/blueprints/tests/__init__.py @@ -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