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