From 20ea70d3524b2dc58e2fd15bf3ec85a3d4a4e118 Mon Sep 17 00:00:00 2001 From: Dmitry Kovalenko Date: Thu, 25 Jul 2024 16:13:08 +0300 Subject: [PATCH] [tests] Assert messages in ConfigTest are corrected test_corrupt_backup_content generates an incorrect assert message that was gotten (through copy&paste) from test_remove_instance_config. Both messages in test_remove_instance_config and test_corrupt_backup_content were reformatted to use a unified structure. --- tests/config_test.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/config_test.py b/tests/config_test.py index b1a0f9295..1ae563c72 100644 --- a/tests/config_test.py +++ b/tests/config_test.py @@ -39,8 +39,8 @@ def test_remove_instance_config(self): backup_dir, 'node', node, backup_type='page') self.assertEqual( 1, 0, - "Expecting Error because pg_probackup.conf is missing. " - ".\n Output: {0} \n CMD: {1}".format( + "Expecting Error because pg_probackup.conf is missing" + "\n Output: {0} \n CMD: {1}".format( repr(self.output), self.cmd)) except ProbackupException as e: self.assertIn( @@ -85,8 +85,8 @@ def test_corrupt_backup_content(self): self.validate_pb(backup_dir, 'node') self.assertEqual( 1, 0, - "Expecting Error because pg_probackup.conf is missing. " - ".\n Output: {0} \n CMD: {1}".format( + "Expecting Error because backup_content.control of the first backup was corrupted intentionally" + "\n Output: {0} \n CMD: {1}".format( repr(self.output), self.cmd)) except ProbackupException as e: self.assertIn(