Skip to content

Commit

Permalink
Formatted test_ftp.py using black
Browse files Browse the repository at this point in the history
  • Loading branch information
fazledyn-or committed Oct 18, 2023
1 parent 38b338a commit 34a8d19
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/test_ftp.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def test_decode_location(self):
"active": False,
"path": "/",
"port": 2121,
"secure": False
"secure": False,
}
self.assertEqual(config, wanted_config)
# Test active FTP
Expand All @@ -63,7 +63,7 @@ def test_decode_location(self):
"active": True,
"path": "/",
"port": 2121,
"secure": False
"secure": False,
}
self.assertEqual(config, wanted_config)

Expand Down Expand Up @@ -258,12 +258,11 @@ def test_decode_location(self):
"active": False,
"path": "/",
"port": 2121,
"secure": True
"secure": True,
}
self.assertEqual(self.storage._config, wanted_config)

@patch("ftplib.FTP_TLS")
def test_start_connection_calls_prot_p(self, mock_ftp):
self.storage._start_connection()
self.storage._connection.prot_p.assert_called_once()

0 comments on commit 34a8d19

Please sign in to comment.