blueprints: open fixtures in read only mode
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
		@ -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
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user