Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit b7cdcb7

Browse files
committed
Fix tests using enum
1 parent 458e2b0 commit b7cdcb7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

testgres/node.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -810,7 +810,7 @@ def dump(self,
810810
filename=None,
811811
dbname=None,
812812
username=None,
813-
format=DumpFormat.Plain):
813+
format=DumpFormat.Plain.value):
814814
"""
815815
Dump database into a file using pg_dump.
816816
NOTE: the file is not removed automatically.
@@ -826,7 +826,7 @@ def dump(self,
826826
"""
827827

828828
def tmpfile():
829-
if format == DumpFormat.Directory:
829+
if format == DumpFormat.Directory.value:
830830
fname = mkdtemp(prefix=TMP_DUMP)
831831
else:
832832
fd, fname = mkstemp(prefix=TMP_DUMP)

0 commit comments

Comments
 (0)