Skip to content

Commit 7609f1b

Browse files
committed
FTPFS: Test fix - move opener unit test for FTPS into its own function.
1 parent 2d637f5 commit 7609f1b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/test_opener.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,9 @@ def test_open_ftp(self, mock_FTPFS):
302302
mock_FTPFS.assert_called_once_with(
303303
"ftp.example.org", passwd="bar", port=21, user="foo", proxy=None, timeout=10, tls=False
304304
)
305+
306+
@mock.patch("fs.ftpfs.FTPFS")
307+
def test_open_ftps(self, mock_FTPFS):
305308
open_fs("ftps://foo:bar@ftp.example.org")
306309
mock_FTPFS.assert_called_once_with(
307310
"ftp.example.org", passwd="bar", port=21, user="foo", proxy=None, timeout=10, tls=True

0 commit comments

Comments
 (0)