summaryrefslogtreecommitdiff
path: root/tests/test_sftp.py
Commit message (Collapse)AuthorAgeFilesLines
* Just change a faux-misspelt surname in an example text snippetJeff Forcier2023-01-271-3/+3
|
* [DATALAD RUNCMD] Run codespell -wYaroslav Halchenko2023-01-241-1/+1
| | | | | | | | | | | | | | === Do not change lines below === { "chain": [], "cmd": "codespell -w", "exit": 0, "extra_inputs": [], "inputs": [], "outputs": [], "pwd": "." } ^^^ Do not change lines above ^^^
* No more (object)ionsJeff Forcier2023-01-161-1/+1
|
* s/%/fstrings/gJeff Forcier2023-01-161-11/+11
| | | | Except in one spot where it was too complicated to bother for now XD
* Missed a spot re: b,u helpers now in utilJeff Forcier2023-01-111-0/+1
|
* No idea when self.fail worked or didn't. old code is old?Jeff Forcier2023-01-111-8/+3
|
* Import shuffleJeff Forcier2023-01-111-1/+1
|
* Remove py3compat.PY2, including related streamliningJeff Forcier2023-01-091-1/+1
|
* Update StringIOJeff Forcier2023-01-091-1/+1
|
* Merge branch '2.10' into 2.11Jeff Forcier2022-06-031-2/+2
|\
| * sftp tests: Replace unittest partsStanislav Levin2022-06-031-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | Fix Free Software Foundation addressPaul Howarth2022-03-151-1/+1
|/ | | | They moved from Temple Place to Franklin Street in 2005.
* Blacken code for #992Jeff Forcier2021-11-281-6/+6
|
* Cleanup re #992Jeff Forcier2021-11-281-10/+6
| | | | | | - remove apparently vestigial bits - remove Python 2.6 related bits - use pytest.skip instead of custom skip
* Fix failure in listdir when server uses a localeMartin Packman2021-11-281-0/+22
| | | | | | | | | | | | | | | 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.
* BlackenJeff Forcier2021-06-061-2/+2
|
* Fixup readability: Add Test for get() without using prefetchTim Stolarski2021-04-301-5/+7
|
* Add Test fpr get() without using prefetchTim Stolarski2021-04-281-0/+26
|
* Some additional badly named tests that I guess weren't in master?Jeff Forcier2019-06-081-1/+1
|
* flake8 now applied to tests, huzzahJeff Forcier2019-06-081-29/+26
|
* Clean up shitty old test names of form test_[9-0A-Z]+_.*Jeff Forcier2019-06-081-31/+31
|
* Bump black up to 18.6b4Jeff Forcier2018-08-221-1/+0
|
* Blacken under black 18.5b0Jeff Forcier2018-05-291-3/+3
|
* Blacken Paramiko on 2.4Chris Rose2018-05-171-236/+259
|
* Mark known slow tests as 'slow' pytest marker, and skip them by defaultJeff Forcier2017-10-251-1/+2
|
* Why were these +x?Jeff Forcier2017-10-231-0/+0
|
* Naturally, more tests I found that do not pass/fail correctly. Skip for nowJeff Forcier2017-10-231-12/+5
|
* Replace rest of unittest-style self-asserts in sftp testsJeff Forcier2017-10-231-46/+26
|
* Start overhauling regular SFTP suite.Jeff Forcier2017-10-231-270/+231
| | | | | | | | | 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...)
* Get big sftp tests passing w/ the sftp client + folder crap being a fixtureJeff Forcier2017-10-231-32/+3
|
* Get sftp-big tests apparently passing.Jeff Forcier2017-10-231-56/+32
| | | | Very slowly. Pretty sure we will want to retain module-level fixtures for that stuff. heh.
* Import cleanup, mostly focused on s/tests/./Jeff Forcier2017-10-231-7/+9
|
* Rename util func that trips pytest's default discovery.Jeff Forcier2017-10-231-2/+2
| | | | Wouldn't matter as much under pytest-relaxed discovery, but, eh
* Remove old Python 3.2 codeHugo2017-10-141-3/+1
|
* Merge branch '2.1'Jeff Forcier2017-06-091-0/+30
|\
| * Allow any buffer type to be written to SFTPFileMartin Packman2017-06-091-0/+30
| | | | | | | | | | | | | | | | | | | | | | 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.
* | Merge branch 'master' into 471-intJeff Forcier2017-06-061-4/+11
|\ \ | |/
| * untie agian!james mike dupont2017-01-241-1/+1
| |
| * Merge branch '1.16'Jeff Forcier2016-04-231-2/+2
| |\
| | * Merge branch '1.15' into 1.16Jeff Forcier2016-04-231-2/+2
| | |\
| | | * Update existing test to prove #632Jeff Forcier2016-04-231-2/+2
| | | |
| * | | Merge branch 'master' of github.com:paramiko/paramikoAdam Meily2015-12-171-1/+7
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | Conflicts: paramiko/sftp_file.py sites/www/changelog.rst
| | * | Merge branch 'master' into 562-intJeff Forcier2015-11-041-0/+5
| | |\ \ | | | |/
| | | * Merge branch '1.14' into 1.15Jeff Forcier2015-11-021-0/+5
| | | |\
| | | | * Added test for str() of empty SFTPAttributes()Ulrich Petri2015-11-021-0/+5
| | | | |
| | * | | prefetch now requires file_size to be passed in as a parameterTorkil Gustavsen2015-07-231-1/+2
| | |/ / | | | | | | | | | | | | | | | | Calling stat from inside the prefetch-body has led users to receive IOError: The message [<filename>] is not extractable.
| * | | add unit tests for file-like object methods and update changelog and docsAdam Meily2015-09-241-0/+1
| |/ /
* | | Add IOError in posix-rename@openssh.com test for python 2 support.Mika Pflüger2015-02-011-1/+1
| | |
* | | Add test for posix-rename@openssh.com extension for SFTP clientMika Pflüger2015-01-061-0/+33
|/ /
* | Converted all staticmethod/classmethod instances to decorators.Jacob Beck2014-10-141-4/+3
| |