@@ -76,9 +76,9 @@ def assert_version_matches(self, expected_version: str):
7676 AssertionError: If the installed version does not match the expected version
7777 """
7878 installed_version = self .get_installed_version ()
79- assert (
80- installed_version == expected_version
81- ), f"Expected version { expected_version } , but found { installed_version } "
79+ assert installed_version == expected_version , (
80+ f"Expected version { expected_version } , but found { installed_version } "
81+ )
8282
8383 def check_upgrade_path (self , pg_version : str ):
8484 """Test the complete upgrade path for a PostgreSQL version.
@@ -146,24 +146,24 @@ def check_switch_extension_with_background_worker(
146146 f"No versions available for PostgreSQL version { pg_version } "
147147 )
148148 last_version = available_versions [- 1 ]
149- assert ext_version .endswith (
150- f"{ self .extension_name } - { last_version } .so "
151- ), f"Expected { self . extension_name } version { last_version } , but found { ext_version } "
149+ assert ext_version .endswith (f" { self . extension_name } - { last_version } .so" ), (
150+ f"Expected { self .extension_name } version { last_version } , but found { ext_version } "
151+ )
152152
153153 # Switch to the first version
154154 first_version = available_versions [0 ]
155155 self .vm .succeed (f"switch_{ self .extension_name } _version { first_version } " )
156156
157157 # Check that we are using the first version now
158158 ext_version = self .vm .succeed (f"readlink -f { extension_lib_path } " ).strip ()
159- assert ext_version .endswith (
160- f"{ self .extension_name } - { first_version } .so "
161- ), f"Expected { self . extension_name } version { first_version } , but found { ext_version } "
159+ assert ext_version .endswith (f" { self . extension_name } - { first_version } .so" ), (
160+ f"Expected { self .extension_name } version { first_version } , but found { ext_version } "
161+ )
162162
163163 # Switch to the first version
164164 self .vm .succeed (f"switch_{ self .extension_name } _version { last_version } " )
165165 # Check that we are using the last version now
166166 ext_version = self .vm .succeed (f"readlink -f { extension_lib_path } " ).strip ()
167- assert ext_version .endswith (
168- f"{ self .extension_name } - { last_version } .so "
169- ), f"Expected { self . extension_name } version { last_version } , but found { ext_version } "
167+ assert ext_version .endswith (f" { self . extension_name } - { last_version } .so" ), (
168+ f"Expected { self .extension_name } version { last_version } , but found { ext_version } "
169+ )
0 commit comments