Jakub Roztocil
3de7c82077
Cleanup
2024-03-04 18:12:18 +01:00
Mickaël Schoentgen
a3a08a9a22
Use relative imports ( #1057 )
...
* Use relative imports in test
* Use relative imports
* Add myself to contributors :)
2021-05-05 14:13:39 +02:00
Mickaël Schoentgen
1274d869f6
Replace usage of mock with unittest.mock ( #1054 )
...
Since Python 3, the mock dependency is no more required as
it is already part of the unittest module.
2021-04-30 15:08:27 +02:00
Jakub Roztocil
374c371ef1
Add httpie.status
2019-09-16 13:26:18 +02:00
Jakub Roztocil
bece3c77bb
Add one-by-one processing of each HTTP request or response and --offline
2019-09-03 17:14:39 +02:00
Jakub Roztocil
aba3b1ec01
Refactoring
2019-08-31 15:17:10 +02:00
Jakub Roztocil
b596fedf13
exit 0
constant: OK
=> SUCCESS
to avoid confusion w/ HTTP 200 OK
2018-11-02 16:07:39 +01:00
Jakub Roztocil
a50660cc70
Test --timeout with longer delay
...
test_timeout_exit_status fails on Python 2.7
https://travis-ci.org/jakubroztocil/httpie/jobs/390072675#L325
2018-07-12 00:39:31 +02:00
Jakub Roztocil
11be041e06
Rename TestEnvironment
to MockEnvironment
to avoid pytest warnings
...
Close #621
2017-12-28 18:17:48 +01:00
Jakub Roztocil
6267f21f21
Clean-up
2016-10-26 11:58:47 +02:00
Jakub Roztocil
9b23a4ac9a
Exit with status 130 on CTRL-C
...
http://www.tldp.org/LDP/abs/html/exitcodes.html
#531
2016-10-26 11:53:01 +02:00
Jakub Roztocil
4e574e6b8e
Cleanup tests
2016-03-03 18:50:18 +08:00
Jakub Roztocil
5dbd104c3b
Nobody ain't got time for that
2016-03-03 17:09:34 +08:00
Jakub Roztocil
2a72ae23d5
Run tests against local httpbin instance via pytest-httpbin.
2014-06-28 16:38:41 +02:00
Jakub Roztocil
77955c9837
Fixed --timeout
...
* Require requests >= 2.3.0
* Updated test_timeout_exit_status
Close #185 .
2014-05-17 22:33:16 +02:00
Jakub Roztocil
d9eca19b8f
New URL.
2014-05-05 21:17:23 +02:00
Jakub Roztocil
2aa53e4be3
Avoid “__init__.py” files in test directories.
...
As recommended here:
https://pytest.org/latest/goodpractises.html
2014-04-28 11:29:41 +02:00
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
27faf06327
Removed last dependencies on unittest. All tests are pytest-only.
2014-04-25 11:39:59 +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
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