source: test

Revision Log Mode:


Legend:

Added
Modified
Copied or renamed
Diff Rev Age Author Log Message
(edit) @2064:b5f89833bc4d   7 months sschwarzer Use `super` for base class constructor call I don't know why this ...
(edit) @2063:c876a8dc49cc   7 months sschwarzer Fix regression for custom session factory arguments The ftputil ...
(edit) @2062:1a71a77c4f89   8 months sschwarzer Fix tar.gz directory I guess I made the letter uppercase accidentally.
(edit) @2046:e59335e8b934   9 months sschwarzer Raise `NoEncodingError` for absent encoding If an FTP session ...
(edit) @2042:ddaa0b9bbaee   9 months sschwarzer Allow `encoding` argument only for `FTP` subclasses If an explicit ...
(edit) @2039:13a2942e3285   9 months sschwarzer Fix tests for Python 3.9 ticket: 143
(edit) @2037:25cd7d1417f9   9 months sschwarzer Fix encoding in comparison The `MockSession` uses the `ftplib` ...
(edit) @2036:5a655d4cf373   9 months sschwarzer Fix `test_path.py` for Python 3.9 Use the same approach as in the fix ...
(edit) @2035:d1192e577ef2   9 months sschwarzer Fix `test_host.py` for Python 3.9 Add an optional argument `encoding` ...
(edit) @2034:4b81570af0f3   9 months sschwarzer Use new module `path_encoding` Replace hardcoded uses of "latin-1", ...
(edit) @2033:99fb8a5f1ab6   9 months sschwarzer Make path encoding configurable Some changes: - Add ...
(edit) @2032:d36882f78aae   9 months sschwarzer Add encoding attribute Otherwise, the `encoding` access goes through ...
(edit) @2031:aa15029facb4   9 months sschwarzer Print next `Call` in scripted session
(edit) @2030:3fd92baa7cb0   9 months sschwarzer Remove brackets from some scripted session output
(edit) @2029:6140fb27fe6e   9 months sschwarzer Use base class default if `encoding` isn't given Make the `encoding` ...
(edit) @2028:72a34b226c8d   9 months sschwarzer Add `encoding` argument for `session_factory` ticket: 143
(edit) @2010:fa4b91eec358   11 months sschwarzer Comment out `ftp.gnome.org` This currently (or permanently?) fails ...
(edit) @2008:8ae153555894   11 months sschwarzer Rename `debian-keyring.tar.gz` to `large_file` This file _used to be_ ...
(edit) @2000:d6af4566e0fa   11 months sschwarzer Update to use with FTP server container See the subdirectory ...
(edit) @1984:b2b21ae7db1c   12 months sschwarzer Remove dependency on exception message Compare `gaierror.errno` ...
(edit) @1938:e19cc39c2c9c   17 months sschwarzer Use `errno.EEXIST` instead of literal 17 The concrete value for a ...
(edit) @1937:f16e9b5084b3   17 months sschwarzer Have `FTPHost.makedirs` handle `exist_ok` If `exist_ok` is `False`, ...
(edit) @1936:eea2502c2676   17 months sschwarzer Move `TestTimeShift` up Move `TestTimeShift` up before ...
(edit) @1935:38acf28f3905   17 months sschwarzer Format docstrings and comments Reformat docstrings and comments to 80 ...
(edit) @1934:df2e1f889303   19 months sschwarzer Remove debugging `print`s
(edit) @1932:3cbfe0a457db   19 months sschwarzer Use `datetime` API instead of `time` API The `datetime` API is easier ...
(edit) @1928:7e2299845b86   19 months sschwarzer Change `utc_local_time_shift` to `expected_time_shift` Replace the ...
(edit) @1927:81bbc72efc93   19 months sschwarzer Adapt test to new definition of time shift The time shift is still ...
(edit) @1926:225ad3bcdc07   19 months sschwarzer Use fractions consistently `minute` would already be a float because ...
(edit) @1923:7b4b21f5da09   19 months sschwarzer Subtract time shift only once The new code in `_Stat.parse_unix_time` ...
(edit) @1919:e1f302aa89d0   19 months sschwarzer Use constant `unknown` instead of `None` Although ...
(edit) @1918:012ebe07956d   19 months sschwarzer Use `utcnow` to match stat result The modification time in a stat ...
(edit) @1917:ed871b3f42c4   19 months sschwarzer Format docstrings and comments to 80 chars width
(edit) @1916:a526dce5108f   19 months sschwarzer Assume server time without time shift is UTC By default, assume the ...
(edit) @1911:925fdea3d316   22 months sschwarzer Wrap some paths in `pathlib.Path` We should have at least _some_ ...
(edit) @1908:218bed8ed75f   22 months sschwarzer Check that cache wasn't used This is the "fix" for ticket #126. It ...
(edit) @1906:f5ee6970ff95   22 months sschwarzer Fix: consider time shift in MS parser Like in the unix parser, the ...
(edit) @1903:009406c12b11   22 months sschwarzer Use time shift in tests for unix time parser Having had the time ...
(edit) @1901:616e46ca84e0   22 months sschwarzer Simplify conversion of original exception In Python 3, exception ...
(edit) @1900:102788710723   22 months sschwarzer Remove `os.fspath` call from `same_string_type_as` As with the ...
(edit) @1899:a90d4f585563   22 months sschwarzer Split `as_str` Split `as_str` into a new `as_str` and `as_str_path`. ...
(edit) @1898:31ad8b3fcd2e   22 months sschwarzer Remove `ftputil.tool.as_bytes` It's no longer necesary in any of the ...
(edit) @1897:f1349dbc8276   22 months sschwarzer Remove test for `bytes` exception strings Assume that for Python 3, ...
(edit) @1890:e067bc331d9e   22 months sschwarzer Remove arguments from `super()` This is no longer necessary in Python 3.
(edit) @1884:a3f58fa3920e   22 months sschwarzer Test if `FTPHost.path` methods accept `PathLike` objects The tests ...
(edit) @1882:c6f5f6f0e027   22 months sschwarzer Use `join` from `posixpath` The type checks in our custom `join` ...
(edit) @1879:831dacddb87c   22 months sschwarzer Support `PathLike` objects in `as_bytes` and `as_str`
(edit) @1876:f0f5c7f9993d   22 months sschwarzer Support `PathLike` objects in `same_string_type_as` If a `PathLike` ...
(edit) @1874:050ea0503b44   22 months sschwarzer Test that ticket 131 is fixed This requires `freezegun` as a ...
(edit) @1873:551f3d4ddf29   22 months sschwarzer Simplify parser test logic When creating a "dir line" in a `dir_line` ...
(edit) @1872:435b04a1c040   22 months sschwarzer Fix bug around year change (ticket #131) The previous code failed ...
(edit) @1871:f588265d2fd6   22 months sschwarzer Remove obsolete comment
(edit) @1870:305bca956bcc   22 months sschwarzer Rename test methods Use `str` instead of `unicode` for the type in ...
(edit) @1867:6b4bf291d1e3   22 months sschwarzer Remove `encode_if_unicode` This function is no longer needed.
(edit) @1865:9b383c76caf7   22 months sschwarzer Rename `tool.as_unicode` to `tool.as_str` We now only support Python ...
(edit) @1858:7c1c214458f6   22 months sschwarzer Add `newline` argument to `StringIO` constructor The `StringIO` ...
(edit) @1857:4c4b99d0c627   22 months sschwarzer Raise `TypeError` if `mode` is `None` This is Python's behavior for ...
(edit) @1856:8d988c761774   22 months sschwarzer Add test for "missing" `mode` argument This works because ...
(edit) @1855:a577970005af   22 months sschwarzer Pass original mode to `socket.makefile` For the previous Python 2 ...
(edit) @1854:19881b69f792   22 months sschwarzer Remove obsolete comment This has been covered in the last commits.
(edit) @1853:9c738419f52c   22 months sschwarzer Use (almost) same test data Use almost the same test data for ...
(edit) @1850:c7affcde25cf   22 months sschwarzer Revise tests for file reading and writing In the past, the concepts ...
(edit) @1849:677583e6e3c6   22 months sschwarzer Use more "challenging" binary data This has `\r\n` and `\n` occurences.
(edit) @1848:7cca1ad2711f   22 months sschwarzer Format source code with Black Format code in `ftputil` and `test` ...
(edit) @1845:442b8ca8a85e   2 years sschwarzer Use `ftp_host_factory` as context manager Apart from a dedicated test ...
(edit) @1844:09d8b66d08dc   2 years sschwarzer Remove `mock_ftplib` module With the switch to the "scripted session" ...
(edit) @1843:80e8e9872c20   2 years sschwarzer Make `session_factory` mandatory With the switch to the "scripted ...
(edit) @1842:d9438dacfdf4   2 years sschwarzer Use `ScriptedSession` in `test_cache_size_zero`
(edit) @1841:e206d84f38af   2 years sschwarzer Use `ScriptedSession` in `test_succeeding_keep_alive` It seems I had ...
(edit) @1840:b99f9334f9e2   2 years sschwarzer Remove helper method `_test_stat` With the switch to the new testing ...
(edit) @1839:08106f3051f1   2 years sschwarzer Use `ScriptedSession` in `TestListdir`
(edit) @1838:41d9643b7ead   2 years sschwarzer Use `ScriptedSession` in `TestLstatAndStat`
(edit) @1835:85cbeb115959   2 years sschwarzer Use only `0o...` format for octal constants I guess the variant with ...
(edit) @1834:1fd91d46a098   2 years sschwarzer Use `ScriptedSession` in `TestParsers`
(edit) @1833:cc9e84b0a418   2 years sschwarzer Use `ScriptedSession` in `TestAcceptEitherBytesOrUnicode`
(edit) @1832:d82623ded860   2 years sschwarzer Use `ScriptedSession` in `TestPath`
(edit) @1827:ae7c58902489   2 years sschwarzer Remove unused mock session classes These classes were needed when the ...
(edit) @1826:72c0f9a06e12   2 years sschwarzer Use `ScriptedSession` in `TestAvailableChild`
(edit) @1825:eeddeb17229c   2 years sschwarzer Use `ScriptedSession` in `TestFileOperations`
(edit) @1823:d8f5fdc5815b   2 years sschwarzer Add TODO comment on future test revision Add TODO comment on future ...
(edit) @1822:588dd642fb25   2 years sschwarzer Create `sock` per instance, not per class The mock socket object is ...
(edit) @1821:969e915c85d7   2 years sschwarzer Simplify `Call` creations - Remove arguments which are `None` (mostly ...
(edit) @1820:2a6cad87b143   2 years sschwarzer Improve `Call` constructor API - Put `result` after `args` and ...
(edit) @1819:66015241a6d5   2 years sschwarzer Add docstrings to test methods
(edit) @1818:89490275e1c5   2 years sschwarzer Use `ScriptedSession` in `TestFileContextManager`
(edit) @1817:bb81569fff7e   2 years sschwarzer Raise exception from `result` argument If a `Call` constructor had ...
(edit) @1816:c589604f8a4b   2 years sschwarzer Use `ScriptedSession` in `TestHostContextManager`
(edit) @1815:f0523f8daee8   2 years sschwarzer Increase year in copyright
(edit) @1811:20115e5cfc46   2 years sschwarzer Use Pytest's `tmp_path` fixture Use the `tmp_path` fixture to make ...
(edit) @1810:840277a08296   2 years sschwarzer Remove `ascii_data` This function is no longer needed. I assume this ...
(edit) @1809:03b28a125c97   2 years sschwarzer Remove uses of `mock_ftplib` With all the test cases in ...
(edit) @1808:f1fa4cf11231   2 years sschwarzer Use `ScriptedSession` in `TestFailingPickling`
(edit) @1807:65b79d35761d   2 years sschwarzer Define `Call` on module level Create a reference `Call` to ...
(edit) @1806:6a898515802d   2 years sschwarzer Use `ScriptedSession` in `TestAcceptEitherUnicodeOrBytes` Only during ...
(edit) @1805:afdbffb32f8d   2 years sschwarzer Use `ScriptedSession` in `test_synchronize_times_for_server_in_east`
(edit) @1804:88d20a857d6d   2 years sschwarzer Move helper class `_Path` Move helper mock class `_Path` to class ...
(edit) @1803:555e10d7d302   2 years sschwarzer Use `ScriptedSession` in `test_synchronize_times` We no longer use ...
(edit) @1801:70f6c1457158   2 years sschwarzer Use `ScriptedSession` in `test_assert_valid_time_shift`
(edit) @1800:f8e4a49b6c62   2 years sschwarzer Use `ScriptedSession` in `test_rounded_time_shift`
(edit) @1799:7d0043ea6eb1   2 years sschwarzer Use `ScriptedSession` in `test_conditional_download_with_newer_target`
Note: See TracRevisionLog for help on using the revision log.