summaryrefslogtreecommitdiffhomepage
path: root/tests/test_sftp.py
AgeCommit message (Collapse)Author
2023-01-27Just change a faux-misspelt surname in an example text snippetJeff Forcier
2023-01-24[DATALAD RUNCMD] Run codespell -wYaroslav Halchenko
=== Do not change lines below === { "chain": [], "cmd": "codespell -w", "exit": 0, "extra_inputs": [], "inputs": [], "outputs": [], "pwd": "." } ^^^ Do not change lines above ^^^
2023-01-16No more (object)ionsJeff Forcier
2023-01-16s/%/fstrings/gJeff Forcier
Except in one spot where it was too complicated to bother for now XD
2023-01-11Missed a spot re: b,u helpers now in utilJeff Forcier
2023-01-11No idea when self.fail worked or didn't. old code is old?Jeff Forcier
2023-01-11Import shuffleJeff Forcier
2023-01-09Remove py3compat.PY2, including related streamliningJeff Forcier
2023-01-09Update StringIOJeff Forcier
2022-06-03Merge branch '2.10' into 2.11Jeff Forcier
2022-06-03sftp tests: Replace unittest partsStanislav Levin
The original PR https://github.com/paramiko/paramiko/pull/992 introduced several tests for sftp functionality. These tests made use of unittest's stuff like `assertTrue` and `assertEqual` because at that moment the tests were grouped under the `unittest.TestCase`-based class (`SFTPTest`). Before PR merge `unittest.TestCase` was refactored out from sftp tests (667bd74b139ed86f9b261d3abf5b6042ba80920b) but PR was not updated. The sftp tests are marked with `slow` and that's why they are not failed in CI (slow tests are excluded by default). Fixes: https://github.com/paramiko/paramiko/issues/1941 Signed-off-by: Stanislav Levin <slev@altlinux.org>
2022-03-15Fix Free Software Foundation addressPaul Howarth
They moved from Temple Place to Franklin Street in 2005.
2021-11-28Blacken code for #992Jeff Forcier
2021-11-28Cleanup re #992Jeff Forcier
- remove apparently vestigial bits - remove Python 2.6 related bits - use pytest.skip instead of custom skip
2021-11-28Fix failure in listdir when server uses a localeMartin Packman
Fixes #985 SFTPAttributes uses the locale-aware %b directive for the abbreviated month name with time.strftime, but was not decoding the result on Python 2.7. Add a strftime alias in py3compat that will always return unicode, and resolve the mixing of bytes and text in SFTPAttributes methods. Add a test at the listdir level, and a more specific test for the SFTPAttributes asbytes method.
2021-06-06BlackenJeff Forcier
2021-04-30Fixup readability: Add Test for get() without using prefetchTim Stolarski
2021-04-28Add Test fpr get() without using prefetchTim Stolarski
2019-06-08Some additional badly named tests that I guess weren't in master?Jeff Forcier
2019-06-08flake8 now applied to tests, huzzahJeff Forcier
2019-06-08Clean up shitty old test names of form test_[9-0A-Z]+_.*Jeff Forcier
2018-08-22Bump black up to 18.6b4Jeff Forcier
2018-05-29Blacken under black 18.5b0Jeff Forcier
2018-05-17Blacken Paramiko on 2.4Chris Rose
2017-10-25Mark known slow tests as 'slow' pytest marker, and skip them by defaultJeff Forcier
2017-10-23Why were these +x?Jeff Forcier
2017-10-23Naturally, more tests I found that do not pass/fail correctly. Skip for nowJeff Forcier
2017-10-23Replace rest of unittest-style self-asserts in sftp testsJeff Forcier
2017-10-23Start overhauling regular SFTP suite.Jeff Forcier
Includes attempt to split out the longer-lived server component from the client component, in fixtures Also starts tweaking early tests so they're less bad. E.g. test_2_close had its docstring actively disagreeing with its code (which was super confusing since both were committed at the same time in 2005...)
2017-10-23Get big sftp tests passing w/ the sftp client + folder crap being a fixtureJeff Forcier
2017-10-23Get sftp-big tests apparently passing.Jeff Forcier
Very slowly. Pretty sure we will want to retain module-level fixtures for that stuff. heh.
2017-10-23Import cleanup, mostly focused on s/tests/./Jeff Forcier
2017-10-23Rename util func that trips pytest's default discovery.Jeff Forcier
Wouldn't matter as much under pytest-relaxed discovery, but, eh
2017-10-14Remove old Python 3.2 codeHugo
2017-06-09Merge branch '2.1'Jeff Forcier
2017-06-09Allow any buffer type to be written to SFTPFileMartin Packman
Fixes #967 #968 Rollup of earlier branches proposed as #969 and #970 with additional fix inside sftp_client. Includes new tests for SFTPFile usage. Change against the 1.17 branch.
2017-06-06Merge branch 'master' into 471-intJeff Forcier
2017-01-24untie agian!james mike dupont
2016-04-23Merge branch '1.16'Jeff Forcier
2016-04-23Merge branch '1.15' into 1.16Jeff Forcier
2016-04-23Update existing test to prove #632Jeff Forcier
2015-12-17Merge branch 'master' of github.com:paramiko/paramikoAdam Meily
Conflicts: paramiko/sftp_file.py sites/www/changelog.rst
2015-11-04Merge branch 'master' into 562-intJeff Forcier
2015-11-02Merge branch '1.14' into 1.15Jeff Forcier
2015-11-02Added test for str() of empty SFTPAttributes()Ulrich Petri
2015-09-24add unit tests for file-like object methods and update changelog and docsAdam Meily
2015-07-23prefetch now requires file_size to be passed in as a parameterTorkil Gustavsen
Calling stat from inside the prefetch-body has led users to receive IOError: The message [<filename>] is not extractable.
2015-02-01Add IOError in posix-rename@openssh.com test for python 2 support.Mika Pflüger
2015-01-06Add test for posix-rename@openssh.com extension for SFTP clientMika Pflüger
2014-10-14Converted all staticmethod/classmethod instances to decorators.Jacob Beck