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

Commitcf1d227

Browse files
Local and remote test code formatting has been synchronized
test_simple.py and test_simple_remote.py have been compared and synchronized.
1 parentf6de273 commitcf1d227

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

‎tests/test_simple.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@ def test_init_unique_system_id(self):
153153

154154
withscoped_config(cache_initdb=True,
155155
cached_initdb_unique=True)asconfig:
156-
157156
self.assertTrue(config.cache_initdb)
158157
self.assertTrue(config.cached_initdb_unique)
159158

@@ -376,21 +375,18 @@ def test_backup_multiple(self):
376375

377376
withnode.backup(xlog_method='fetch')asbackup1, \
378377
node.backup(xlog_method='fetch')asbackup2:
379-
380378
self.assertNotEqual(backup1.base_dir,backup2.base_dir)
381379

382380
withnode.backup(xlog_method='fetch')asbackup:
383381
withbackup.spawn_primary('node1',destroy=False)asnode1, \
384382
backup.spawn_primary('node2',destroy=False)asnode2:
385-
386383
self.assertNotEqual(node1.base_dir,node2.base_dir)
387384

388385
deftest_backup_exhaust(self):
389386
withget_new_node()asnode:
390387
node.init(allow_streaming=True).start()
391388

392389
withnode.backup(xlog_method='fetch')asbackup:
393-
394390
# exhaust backup by creating new node
395391
withbackup.spawn_primary():
396392
pass
@@ -778,7 +774,6 @@ def test_pg_config(self):
778774

779775
# modify setting for this scope
780776
withscoped_config(cache_pg_config=False)asconfig:
781-
782777
# sanity check for value
783778
self.assertFalse(config.cache_pg_config)
784779

@@ -810,7 +805,6 @@ def test_config_stack(self):
810805
self.assertEqual(c1.cached_initdb_dir,d1)
811806

812807
withscoped_config(cached_initdb_dir=d2)asc2:
813-
814808
stack_size=len(testgres.config.config_stack)
815809

816810
# try to break a stack
@@ -840,7 +834,6 @@ def test_unix_sockets(self):
840834
deftest_auto_name(self):
841835
withget_new_node().init(allow_streaming=True).start()asm:
842836
withm.replicate().start()asr:
843-
844837
# check that nodes are running
845838
self.assertTrue(m.status())
846839
self.assertTrue(r.status())

‎tests/test_simple_remote.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ def removing(f):
9494

9595

9696
classTestgresRemoteTests(unittest.TestCase):
97-
9897
deftest_node_repr(self):
9998
withget_remote_node(conn_params=conn_params)asnode:
10099
pattern=r"PostgresNode\(name='.+', port=.+, base_dir='.+'\)"
@@ -748,6 +747,7 @@ def test_pg_config(self):
748747

749748
# save right before config change
750749
c1=get_pg_config()
750+
751751
# modify setting for this scope
752752
withscoped_config(cache_pg_config=False)asconfig:
753753
# sanity check for value

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp