@@ -421,9 +421,9 @@ def is_healthy(ssh) -> bool:
421421def test_postgrest_is_running (host ):
422422 """Check if postgrest service is running using our SSH connection."""
423423 result = run_ssh_command (host ["ssh" ], "systemctl is-active postgrest" )
424- assert (
425- result [ "succeeded" ] and result [ "stdout" ]. strip () == "active "
426- ), "PostgREST service is not running"
424+ assert result [ "succeeded" ] and result [ "stdout" ]. strip () == "active" , (
425+ "PostgREST service is not running "
426+ )
427427
428428
429429def test_postgrest_responds_to_requests (host ):
@@ -546,9 +546,9 @@ def test_postgresql_version(host):
546546 if version_match :
547547 major_version = int (version_match .group (1 ))
548548 print (f"PostgreSQL major version: { major_version } " )
549- assert (
550- major_version >= 14
551- ), f"PostgreSQL version { major_version } is less than 14"
549+ assert major_version >= 14 , (
550+ f"PostgreSQL version { major_version } is less than 14"
551+ )
552552 else :
553553 assert False , "Could not parse PostgreSQL version number"
554554 else :
@@ -578,9 +578,9 @@ def test_libpq5_version(host):
578578 if version_match :
579579 major_version = int (version_match .group (1 ))
580580 print (f"libpq5 major version: { major_version } " )
581- assert (
582- major_version >= 14
583- ), f"libpq5 version { major_version } is less than 14"
581+ assert major_version >= 14 , (
582+ f"libpq5 version { major_version } is less than 14"
583+ )
584584 else :
585585 print ("Could not parse libpq5 version from dpkg output" )
586586 else :
@@ -613,9 +613,9 @@ def test_libpq5_version(host):
613613 if version_match :
614614 major_version = int (version_match .group (1 ))
615615 print (f"psql/libpq major version: { major_version } " )
616- assert (
617- major_version >= 14
618- ), f"psql/libpq version { major_version } is less than 14"
616+ assert major_version >= 14 , (
617+ f"psql/libpq version { major_version } is less than 14"
618+ )
619619 else :
620620 print ("Could not parse psql version" )
621621
@@ -776,7 +776,9 @@ def test_postgrest_read_only_session_attrs(host):
776776 print (
777777 f"\n Found 'session is not read-only' errors in PostgREST logs:\n { result ['stdout' ]} "
778778 )
779- assert False , "PostgREST logs contain 'session is not read-only' errors even though PostgreSQL is configured for read-only mode"
779+ assert False , (
780+ "PostgREST logs contain 'session is not read-only' errors even though PostgreSQL is configured for read-only mode"
781+ )
780782 else :
781783 print ("\n No 'session is not read-only' errors found in PostgREST logs" )
782784
0 commit comments