mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2024-11-28 09:33:54 +02:00
[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.
This commit is contained in:
parent
a2510f5fa1
commit
20ea70d352
@ -39,8 +39,8 @@ class ConfigTest(ProbackupTest, unittest.TestCase):
|
||||
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 @@ class ConfigTest(ProbackupTest, unittest.TestCase):
|
||||
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(
|
||||
|
Loading…
Reference in New Issue
Block a user