Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[tests] test_corrupt_backup_content was updated [typos, new asserts]#633

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
dmitry-lipetsk wants to merge1 commit intopostgrespro:master
base:master
Choose a base branch
Loading
fromdmitry-lipetsk:D20240725_02--test_corrupt_backup_content

Conversation

dmitry-lipetsk
Copy link

New names:
full2_id [was fulle2_id]
full1_conf_file [was fulle1_conf_file]
full2_conf_file [was fulle2_conf_file]

New asserts:

  • self.show_pb(backup_dir, 'node', full1_id)['status'] is 'CORRUPT'
  • self.show_pb(backup_dir, 'node', full2_id)['status'] is 'OK'

New names: full2_id [was fulle2_id] full1_conf_file [was fulle1_conf_file] full2_conf_file [was fulle2_conf_file]New asserts: - self.show_pb(backup_dir, 'node', full1_id)['status'] is 'CORRUPT' - self.show_pb(backup_dir, 'node', full2_id)['status'] is 'OK'
@@ -107,7 +107,8 @@ def test_corrupt_backup_content(self):
"\n Unexpected Error Message: {0}\n CMD: {1}".format(
repr(e.message), self.cmd))

self.show_pb(backup_dir, 'node', full1_id)['status']
self.assertEqual(self.show_pb(backup_dir, 'node', full1_id)['status'], 'CORRUPT')
self.assertEqual(self.show_pb(backup_dir, 'node', full2_id)['status'], 'OK')

self.assertEqual(self.show_pb(backup_dir, 'node')[0]['status'], 'CORRUPT')
Copy link
Author

@dmitry-lipetskdmitry-lipetskJul 25, 2024
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

If you want, I can replace last two lines with something like this, too:

info=self.show_pb(backup_dir,'node')self.assertIsNotNone(info)self.assertEqual(len(info),2)self.assertIsNotNone(info[0])self.assertIsNotNone(info[1])self.assertIn('status',info[0].keys())self.assertIn('status',info[1].keys())self.assertEqual(info[0]['status'],'CORRUPT')self.assertEqual(info[1]['status'],'OK')

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@dmitry-lipetsk

[8]ページ先頭

©2009-2025 Movatter.jp