summaryrefslogtreecommitdiffhomepage
path: root/tests/test_sftp.py
AgeCommit message (Collapse)Author
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
2014-09-18A herp and a derp (and an import shuffle)Jeff Forcier
2014-09-18Clean up & tweak failing sftp closure testJeff Forcier
2014-09-07Remove TODOMichael Williamson
2014-09-07Fix error on Python 2.5Michael Williamson
2014-09-07Convert SFTPClient to a context managerMichael Williamson
2014-09-05Add quick test re #131Jeff Forcier
2014-09-0580-col tweaksJeff Forcier
2014-04-24Fix some trailing whitespaceJeff Forcier
2014-04-24Merge updated a01e449 from al-tonioJeff Forcier
2014-04-17BufferedFile.read() now returns byte strings instead of text stringsAntoine Brenner
It is the right thing to do since we have no idea what encoding the file is in, or even if the file is text data. BufferedFile.readline() is unchanged and returns text strings assuming the file is utf-8 encoded. This should fix the following issue: http://comments.gmane.org/gmane.comp.sysutils.backup.obnam/252 Antoine Brenner Conflicts: sites/www/changelog.rst
2014-04-16Merge branch '1.12' into 1.13Jeff Forcier
Conflicts: paramiko/sftp_client.py sites/www/changelog.rst tests/test_sftp.py
2014-04-16Fix logging error in sftp_client for filenames containing the character.Jeff Forcier
Bug reported here: http://vlists.pepperfish.net/pipermail/obnam-flarn.net/2013-May/000767.html Antoine Brenner Backported to 1.11 by @bitprophet Conflicts: paramiko/sftp_client.py sites/www/changelog.rst tests/test_sftp.py