Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 458e2b0 commit b7cdcb7Copy full SHA for b7cdcb7
testgres/node.py
@@ -810,7 +810,7 @@ def dump(self,
810
filename=None,
811
dbname=None,
812
username=None,
813
- format=DumpFormat.Plain):
+ format=DumpFormat.Plain.value):
814
"""
815
Dump database into a file using pg_dump.
816
NOTE: the file is not removed automatically.
@@ -826,7 +826,7 @@ def dump(self,
826
827
828
def tmpfile():
829
- if format == DumpFormat.Directory:
+ if format == DumpFormat.Directory.value:
830
fname = mkdtemp(prefix=TMP_DUMP)
831
else:
832
fd, fname = mkstemp(prefix=TMP_DUMP)
0 commit comments