Andrei Zeliankou
c183bd8749
Tests: get rid of classes in test files.
...
Class usage came from the unittest framework and it was always redundant
after migration to the pytest. This commit removes classes from files
containing tests to make them more readable and understandable.
2023-06-14 18:20:09 +01:00
Andrei Zeliankou
7934dcabbc
Tests: switched to using f-strings.
...
Previously, it was necessary to support older versions of Python for
compatibility. F-strings were released in Python 3.6. Python 3.5 was
marked as unsupported by the end of 2020, so now it's possible to start
using f-strings safely for better readability and performance.
2023-02-21 17:21:29 +00:00
Andrei Zeliankou
190691ade8
Tests: NJS.
2022-11-29 01:02:08 +00:00
Andrei Zeliankou
8e1e047191
Tests: don't try to return response when "no_recv" is True.
2022-10-11 13:49:10 +01:00
Andrei Zeliankou
d1cb8ab2bb
Tests: added tests with abstract UNIX sockets.
2022-08-25 15:50:49 +01:00
Andrei Zeliankou
69e690affe
Tests: added flags to search functions in proto.py.
...
Also removed unnesessary re.compile() calls.
2022-07-28 14:12:19 +01:00
Andrei Zeliankou
0f72534660
Tests: style.
2022-04-11 21:05:14 +01:00
Andrei Zeliankou
960ffc9967
Tests: added SNI test without hostname in request.
2021-07-23 15:37:03 +01:00
Andrei Zeliankou
6c97a1a069
Tests: style.
2021-04-05 14:03:05 +01:00
Andrei Zeliankou
e8577afc21
Tests: SNI.
2021-03-26 21:06:23 +00:00
Andrei Zeliankou
7be62c3c21
Tests: TestUnit class removed.
...
Prerequisite checks moved to the fixture in conftest.py.
2020-12-09 16:17:46 +00:00
Andrei Zeliankou
07789a23e9
Tests: options moved to the separate class.
...
This change is necessary to separate the logic
and prevent possible circular dependency.
2020-12-06 16:01:59 +00:00
Max Romanov
567f0a7b30
Tests: fixing tests interrupt in terminal.
...
KeyboardInterrupt re-raised.
2020-11-16 20:37:01 +03:00
Andrei Zeliankou
54837759f3
Tests: fixed unit.log print.
2020-10-19 22:25:29 +01:00
Andrei Zeliankou
6ec0ff3596
Tests: minor fixes.
2020-10-07 23:18:43 +01:00
Max Romanov
767c4cb508
Tests: using dict.get() method with default value.
...
No functional changes. Only code readability improved.
2020-09-22 12:40:18 +03:00
Andrei Zeliankou
d5e9159340
Tests: migrated to the pytest.
2020-09-16 21:31:15 +01:00
Andrei Zeliankou
ce4a2bbd05
Tests: style.
2020-05-15 04:20:56 +01:00
Andrei Zeliankou
0bfa09dfa0
Tests: minor fixes and style.
2020-04-14 02:35:04 +01:00
Andrei Zeliankou
d7aa514d6a
Tests: added notification on "read_timeout" expiration.
2020-04-03 01:46:59 +01:00
Andrei Zeliankou
48ad88ee72
Tests: increase default "read_timeout" value to 60s.
...
This change is necessary to avoid errors on slow hosts.
Also slightly reworked argument passing to the recvall() function.
2020-03-23 19:18:26 +00:00
Andrei Zeliankou
ac9ca6d75c
Tests: added notification on unsuccessful connect().
2020-03-23 19:12:22 +00:00
Andrei Zeliankou
f68947bc60
Tests: truncated huge messages while logging.
2020-03-02 13:10:38 +00:00
Tiago Natel de Moura
d3e218a8c3
Tests: add helper for form-data and multipart.
2020-02-05 13:13:04 +00:00
Tiago Natel
224787bbac
Tests: added getjson() helper.
2019-11-26 16:00:11 +00:00
Tiago Natel
01103c5005
Tests: parsing of "Transfer-Encoding: chunked" responses.
2019-11-26 15:58:25 +00:00
Andrei Zeliankou
b5e3e22a46
Tests: waitforsocket() introduced.
2019-11-14 17:14:55 +03:00
Andrey Zelenkov
ed3298a3c6
Tests: fixed operator in http.py.
2019-11-08 14:04:32 +03:00
Andrey Zelenkov
26fcb46137
Tests: added read_buffer_size option in http().
2019-09-18 00:25:57 +03:00
Andrey Zelenkov
23215c839f
Tests: head() method introduced.
2019-09-17 21:15:15 +03:00
Andrey Zelenkov
4d7576d323
Tests: print decoded strings in detailed mode, if possible.
2019-08-14 16:26:47 +03:00
Andrey Zelenkov
dfb625789b
Tests: read_timeout increased.
2019-04-09 20:59:41 +03:00
Andrey Zelenkov
19eba1730a
Tests: unit module refactoring.
2019-03-28 18:43:13 +03:00