@@ -93,7 +93,7 @@ def test_postgres_db_filters(
9393 "--env=PGPASSWORD=password" ,
9494 "--env=PASSPHRASE=good" ,
9595 f"--env=PGHOST={ postgres_container ['NetworkSettings' ]['IPAddress' ]} " ,
96- "--env=DST=file:/// mnt/backup/dst" ,
96+ "--env=DST=file://mnt/backup/dst" ,
9797 ]
9898 if dbs_to_include is not None :
9999 exc = exc [f"--env=DBS_TO_INCLUDE={ dbs_to_include } " ]
@@ -110,7 +110,7 @@ def test_postgres_db_filters(
110110 # Fri Oct 29 12:29:34 2021 .
111111 # Fri Oct 29 12:29:34 2021 demo1.sql
112112 # Fri Oct 29 12:29:34 2021 demo2.sql
113- output = exc ("dup" , "list-current-files" , "file:/// mnt/backup/dst" )
113+ output = exc ("dup" , "list-current-files" , "file://mnt/backup/dst" )
114114 # Assert we backed up the correct DBs
115115 backed = re .findall (r" (\w+)\.sql" , output )
116116 assert backed == dbs_matched
@@ -140,7 +140,7 @@ def test_postgres_restore(
140140 "--env=PASSPHRASE=good" ,
141141 f"--env=PGHOST={ postgres_container ['NetworkSettings' ]['IPAddress' ]} " ,
142142 "--env=SRC=/mnt/backup/src" ,
143- "--env=DST=file:/// mnt/backup/dst" ,
143+ "--env=DST=file://mnt/backup/dst" ,
144144 ]
145145 exc = exc [duplicity_container ]
146146 # Create all those test dbs
@@ -162,21 +162,21 @@ def test_postgres_restore(
162162@pytest .mark .parametrize (
163163 "dbs_to_include, dbs_to_exclude, dbs_matched, dests" ,
164164 (
165- (None , "^demo" , ["prod1" , "prod2" ], ["file:/// mnt/backup/dst_1" ]),
165+ (None , "^demo" , ["prod1" , "prod2" ], ["file://mnt/backup/dst_1" ]),
166166 (
167167 "^prod" ,
168168 None ,
169169 ["prod1" , "prod2" ],
170- ["file:/// mnt/backup/dst_1" , "file:/ //mnt/backup/dst_2" ],
170+ ["file://mnt/backup/dst_1" , "file://mnt/backup/dst_2" ],
171171 ),
172172 (
173173 "prod" ,
174174 "2" ,
175175 ["prod1" ],
176176 [
177- "file:/// mnt/backup/dst_1" ,
178- "file:/// mnt/backup/dst_2" ,
179- "file:/// mnt/backup/dst_3" ,
177+ "file://mnt/backup/dst_1" ,
178+ "file://mnt/backup/dst_2" ,
179+ "file://mnt/backup/dst_3" ,
180180 ],
181181 ),
182182 ),
@@ -232,7 +232,7 @@ def test_postgres_multi(
232232 (
233233 (
234234 ["prod1" ],
235- ["file:/// mnt/backup/dst_1" , "file:/ //mnt/backup/dst_2" ],
235+ ["file://mnt/backup/dst_1" , "file://mnt/backup/dst_2" ],
236236 ),
237237 ),
238238)
0 commit comments