@@ -96,9 +96,9 @@ def assert_version_matches(self, expected_version: str):
9696 AssertionError: If the installed version does not match the expected version
9797 """
9898 installed_version = self .get_installed_version ()
99- assert (
100- installed_version == expected_version
101- ), f"Expected version { expected_version } , but found { installed_version } "
99+ assert installed_version == expected_version , (
100+ f"Expected version { expected_version } , but found { installed_version } "
101+ )
102102
103103 def check_upgrade_path (self , pg_version : str ):
104104 """Test the complete upgrade path for a PostgreSQL version.
@@ -166,27 +166,27 @@ def check_switch_extension_with_background_worker(
166166 f"No versions available for PostgreSQL version { pg_version } "
167167 )
168168 last_version = available_versions [- 1 ]
169- assert ext_version .endswith (
170- f"{ self .lib_name } - { last_version } .so "
171- ), f"Expected { self . extension_name } version { last_version } , but found { ext_version } "
169+ assert ext_version .endswith (f" { self . lib_name } - { last_version } .so" ), (
170+ f"Expected { self .extension_name } version { last_version } , but found { ext_version } "
171+ )
172172
173173 # Switch to the first version
174174 first_version = available_versions [0 ]
175175 self .vm .succeed (f"switch_{ self .extension_name } _version { first_version } " )
176176
177177 # Check that we are using the first version now
178178 ext_version = self .vm .succeed (f"readlink -f { extension_lib_path } " ).strip ()
179- assert ext_version .endswith (
180- f"{ self .lib_name } - { first_version } .so "
181- ), f"Expected { self . extension_name } version { first_version } , but found { ext_version } "
179+ assert ext_version .endswith (f" { self . lib_name } - { first_version } .so" ), (
180+ f"Expected { self .extension_name } version { first_version } , but found { ext_version } "
181+ )
182182
183183 # Switch to the last version
184184 self .vm .succeed (f"switch_{ self .extension_name } _version { last_version } " )
185185 # Check that we are using the last version now
186186 ext_version = self .vm .succeed (f"readlink -f { extension_lib_path } " ).strip ()
187- assert ext_version .endswith (
188- f"{ self .lib_name } - { last_version } .so "
189- ), f"Expected { self . extension_name } version { last_version } , but found { ext_version } "
187+ assert ext_version .endswith (f" { self . lib_name } - { last_version } .so" ), (
188+ f"Expected { self .extension_name } version { last_version } , but found { ext_version } "
189+ )
190190
191191 def check_pg_regress (self , pg_regress : Path , pg_version : str , test_name : str ):
192192 """Run pg_regress tests for the extension on a given PostgreSQL version.
0 commit comments