Changeset 1840:b99f9334f9e2


Ignore:
Timestamp:
Jul 11, 2019, 10:00:15 PM (3 months ago)
Author:
Stefan Schwarzer <sschwarzer@…>
Branch:
default
Message:
Remove helper method `_test_stat`

With the switch to the new testing approach (scripted sessions) this
helper function is no longer needed.

Also remove now unused import of `mock_ftplib`.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/test_stat.py

    r1839 r1840  
    1616
    1717from test import test_base
    18 from test import mock_ftplib
    1918from test import scripted_session
    2019
    2120
    2221Call = scripted_session.Call
    23 
    24 
    25 def _test_stat(session_factory):
    26     host = test_base.ftp_host_factory(session_factory=session_factory)
    27     stat = ftputil.stat._Stat(host)
    28     # Use Unix format parser explicitly. This doesn't exclude switching
    29     # to the MS format parser later if the test allows this switching.
    30     stat._parser = ftputil.stat.UnixParser()
    31     return stat
    3222
    3323
Note: See TracChangeset for help on using the changeset viewer.