8000 adding key -F to pg_dump by Fenimorkin · Pull Request #32 · postgrespro/testgres · GitHub
[go: up one dir, main page]

Skip to content

adding key -F to pg_dump #32

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
May 8, 2018
Prev Previous commit
Next Next commit
changes for test coverage
  • Loading branch information
Fenimorkin committed Apr 29, 2018
commit a4d1ab931139e57b8072fdc0cc033e5348766df5
14 changes: 7 additions & 7 deletions tests/test_simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,13 +428,13 @@ def test_dump(self):
node1.execute(query_create)

# take a new dump plain format
dump = node1.dump()
self.assertTrue(os.path.isfile(dump))
with get_new_node().init().start() as node2:
node2.psql(filename=dump, dbname=None, username=None)
res = node2.execute(query_select)
self.assertListEqual(res, [(1, ), (2, )])
os.remove(dump)
with removing(node1.dump()) as dump:
with get_new_node().init().start() as node2:
# restore dump
self.assertTrue(os.path.isfile(dump))
node2.psql(filename=dump, dbname=None, username=None)
res = node2.execute(query_select)
self.assertListEqual(res, [(1, ), (2, )])

dump = node1.dump(format='plain')
self.assertTrue(os.path.isfile(dump))
Expand Down
0