@@ -269,14 +269,16 @@ def temp_config_with_variables():
269269 with tempfile .NamedTemporaryFile (
270270 mode = "w" , suffix = ".yaml" , delete = False
271271 ) as f :
272- f .write ("""
272+ f .write (
273+ """
273274auth:
274275 address: ${AUTH0_ADDRESS}
275276 audience: $AUTH0_AUDIENCE
276277database:
277278 password: ${DB_PASSWORD}
278279special: ${ANOTHER_VAR}
279- """ )
280+ """
281+ )
280282 temp_path = f .name
281283
282284 yield temp_path
@@ -306,11 +308,13 @@ def temp_config_with_missing_var():
306308 with tempfile .NamedTemporaryFile (
307309 mode = "w" , suffix = ".yaml" , delete = False
308310 ) as f :
309- f .write ("""
311+ f .write (
312+ """
310313auth:
311314 address: ${AUTH0_ADDRESS}
312315 audience: ${MISSING_VAR}
313- """ )
316+ """
317+ )
314318 temp_path = f .name
315319
316320 yield temp_path
@@ -424,13 +428,15 @@ def temp_config_with_complex_values():
424428 with tempfile .NamedTemporaryFile (
425429 mode = "w" , suffix = ".yaml" , delete = False
426430 ) as f :
427- f .write ("""
431+ f .write (
432+ """
428433url: ${URL_WITH_QUERY}
429434json: ${JSON_STRING}
430435path: ${PATH_WITH_SPACES}
431436empty: ${EMPTY_VALUE}
432437quoted: ${VALUE_WITH_QUOTES}
433- """ )
438+ """
439+ )
434440 temp_path = f .name
435441
436442 yield temp_path
@@ -467,7 +473,8 @@ def temp_realistic_config_with_vars():
467473 with tempfile .NamedTemporaryFile (
468474 mode = "w" , suffix = ".yaml" , delete = False
469475 ) as f :
470- f .write ("""
476+ f .write (
477+ """
471478app:
472479 name: policyengine-household-api
473480 environment: test
@@ -486,7 +493,8 @@ def temp_realistic_config_with_vars():
486493 connection_name: ${USER_ANALYTICS_DB_CONNECTION_NAME}
487494 username: ${USER_ANALYTICS_DB_USERNAME}
488495 password: ${USER_ANALYTICS_DB_PASSWORD}
489- """ )
496+ """
497+ )
490498 temp_path = f .name
491499
492500 yield temp_path
0 commit comments