Jakub Roztocil
15e62ad26d
Implemented more robust unicode handling.
...
* Immediatelly convert all args from `bytes` to `str`.
* Added `Environment.stdin_encoding` and `Environment.stdout_encoding`
* Allow unicode characters in HTTP headers and basic auth credentials
by encoding them using UTF8 instead of latin1 (#212 ).
2014-04-26 15:07:31 +02:00
Jakub Roztocil
0c45c7cb39
Disabled test_windows_colorized_output
2014-04-26 11:06:50 +02:00
Jakub Roztocil
631e332dad
Cleanup
2014-04-25 13:57:33 +02:00
Jakub Roztocil
33422312c5
Cleanup
2014-04-25 13:52:43 +02:00
Jakub Roztocil
1d987c5b4d
Improved session tests.
2014-04-25 13:50:44 +02:00
Jakub Roztocil
3c2de34285
Improved auth tests.
2014-04-25 13:10:01 +02:00
Jakub Roztocil
492ee392bd
Cleanup
2014-04-25 12:42:50 +02:00
Jakub Roztocil
af4aa3a761
Test improvements.
2014-04-25 12:18:35 +02:00
Jakub Roztocil
27faf06327
Removed last dependencies on unittest. All tests are pytest-only.
2014-04-25 11:39:59 +02:00
Jakub Roztocil
f658d24c93
Parametrize test_docs.py.
2014-04-25 10:41:04 +02:00
Jakub Roztocil
f02169ea71
Added Python 2.6 compatible OrderedDict
...
To preserver ordr of headers, parameters, etc.
2014-04-24 19:57:19 +02:00
Jakub Roztocil
e5d758e4ce
More tests.
2014-04-24 19:32:55 +02:00
Jakub Roztocil
ce2169f4fe
Added docstrings for utilities in tests.__init__
.
2014-04-24 19:32:55 +02:00
Jakub Roztocil
bdea7be456
Added tests for --debug and --help.
2014-04-24 19:32:55 +02:00
Jakub Roztocil
887f70f595
Added CONTRIBUTING.rst.
2014-04-24 19:32:55 +02:00
Jakub Roztocil
3d079942f4
Finished pytest migration.
2014-04-24 19:32:55 +02:00
Jakub Roztocil
3cb124bba7
Cleanup
...
XX
2014-04-24 19:32:50 +02:00
Jakub Roztocil
6f28624134
Switched to @pytest.mark.skipif.
2014-04-24 15:17:23 +02:00
Jakub Roztocil
941c0a8c3c
Moved fixture constants to tests.fixtures.
2014-04-24 15:17:04 +02:00
Jakub Roztocil
b880e996d0
Converted all unittest asserts to plain, pytest-powered asserts.
2014-04-24 14:58:15 +02:00
Jakub Roztocil
6071fff4af
Refactored tests into smaller modules.
2014-04-24 14:07:31 +02:00
Jakub Roztocil
746a1899f3
Skip ExitStatusTest.test_timeout_exit_status until timeout gets fixed in requests.
2014-03-31 13:01:55 +02:00
Jakub Roztocil
bbbae3ae25
Fixed SessionTest.test_session_read_only.
2014-03-31 13:01:55 +02:00
Jakub Roztocil
e0cc63c7eb
Cleanup
2014-01-25 15:09:28 +01:00
Nathan LaFreniere
8a52bef559
make shorthand parsing more robust, add unit tests and documentation
2013-10-09 11:32:41 -07:00
Jakub Roztocil
0bcd4d2fb0
Fixed a bytes/str issue for Python 3.
2013-09-25 00:00:17 +02:00
Jakub Roztocil
d5bc564e4f
Allow embeding text (=@) and JSON (:=@) files content into request data fields.
2013-09-24 23:41:18 +02:00
Jakub Roztocil
2a6514eb5d
Update to requests 2.0.0
...
Closes #140 .
2013-09-24 21:49:43 +02:00
Jakub Roztocil
29f6b6a2a9
Improved Content-Disposition parsing for --download mode
...
Closes #168 .
2013-09-24 19:50:37 +02:00
Jakub Roztocil
f7b703b4bf
Added --ignore-stdin
...
Closes #150
2013-08-23 10:57:17 +02:00
Jakub Roztocil
00de49f4c3
Cleanup
2013-08-18 00:59:10 +02:00
Jakub Roztocil
383dba524a
Print error when download is interrupted by server
...
Close #147
2013-07-07 17:00:03 +02:00
Jakub Roztocil
c3d550e930
Fixed headers tests; Require requests>=1.2.3.
2013-06-02 20:47:29 +02:00
Jakub Roztocil
8e112a6948
test_download_no_Content_Length
2013-05-13 15:35:12 +02:00
Jakub Roztocil
87c59ae561
Added anonymous sessions (--session=/file/path.json).
2013-05-13 14:47:44 +02:00
Jakub Roztocil
e09b74021c
Ignore Content-* and If-* request headers.
...
Those headers are not stored in sessions anymore.
Closes #141 .
2013-05-13 11:54:49 +02:00
Jakub Roztocil
71e7061014
v0.5.0
2013-04-27 12:03:38 -03:00
Jakub Roztocil
bc756cb6a2
Cleanup
2013-04-27 11:57:13 -03:00
Jakub Roztocil
1fc8396c4b
Stop the progres reporter thread on error.
2013-04-16 04:55:45 -03:00
Jakub Roztocil
6c3b983c18
Tests
2013-04-15 00:56:47 -03:00
Jakub Roztocil
cfa7199f0b
Added a simple download test.
2013-04-13 15:34:31 -03:00
Jakub Roztocil
5a1177d57e
Fixed downloads with no Content-Length.
2013-04-13 14:50:46 -03:00
Jakub Roztocil
d17e02792b
Fixed length progress bar.
2013-04-12 21:49:27 -03:00
Jakub Roztocil
1681a4ddd0
TODOs
2013-04-12 15:27:26 -03:00
Jakub Roztocil
72cf7c2cb7
Fixed tests for Python 2.6.
2013-04-12 13:42:34 -03:00
Jakub Roztocil
464b7a36da
Tests
2013-04-12 10:20:01 -03:00
Jakub Roztocil
674acfe2c2
Cleanup
2013-04-11 16:23:15 -03:00
Jakub Roztocil
7ccdece39f
Cleanup
2013-04-11 04:00:41 -03:00
Jakub Roztocil
e53dcba03e
Added Content-Range parsing tests.
...
#104
2013-04-11 03:49:01 -03:00
Jakub Roztocil
6e5c696ac9
--json with no data sets Content-Type as well
...
Closes #137
2013-04-02 11:07:14 -03:00