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

Commitec7605e

Browse files
committed
add backup testcase
1 parent8f6b8a4 commitec7605e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

‎tests/test_simple.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,13 @@ def test_backup_exhaust(self):
360360
withself.assertRaises(BackupException):
361361
backup.spawn_primary()
362362

363+
deftest_backup_wrong_xlog_method(self):
364+
withget_new_node()asnode:
365+
node.init(allow_streaming=True).start()
366+
367+
withself.assertRaises(BackupException,msg='Invalid xlog_method "wrong"'):
368+
node.backup(xlog_method='wrong')
369+
363370
deftest_replicate(self):
364371
withget_new_node()asnode:
365372
node.init(allow_streaming=True).start()

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp