Skip to content

Commit cf1d227

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 parent f6de273 commit cf1d227

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

tests/test_simple.py

-7
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@ def test_init_unique_system_id(self):
153153

154154
with scoped_config(cache_initdb=True,
155155
cached_initdb_unique=True) as config:
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
with node.backup(xlog_method='fetch') as backup1, \
378377
node.backup(xlog_method='fetch') as backup2:
379-
380378
self.assertNotEqual(backup1.base_dir, backup2.base_dir)
381379

382380
with node.backup(xlog_method='fetch') as backup:
383381
with backup.spawn_primary('node1', destroy=False) as node1, \
384382
backup.spawn_primary('node2', destroy=False) as node2:
385-
386383
self.assertNotEqual(node1.base_dir, node2.base_dir)
387384

388385
def test_backup_exhaust(self):
389386
with get_new_node() as node:
390387
node.init(allow_streaming=True).start()
391388

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

779775
# modify setting for this scope
780776
with scoped_config(cache_pg_config=False) as config:
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
with scoped_config(cached_initdb_dir=d2) as c2:
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
def test_auto_name(self):
841835
with get_new_node().init(allow_streaming=True).start() as m:
842836
with m.replicate().start() as r:
843-
844837
# check that nodes are running
845838
self.assertTrue(m.status())
846839
self.assertTrue(r.status())

tests/test_simple_remote.py

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

9595

9696
class TestgresRemoteTests(unittest.TestCase):
97-
9897
def test_node_repr(self):
9998
with get_remote_node(conn_params=conn_params) as node:
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
with scoped_config(cache_pg_config=False) as config:
753753
# sanity check for value

0 commit comments

Comments
 (0)