summaryrefslogtreecommitdiffhomepage
path: root/test/unit/http.py (follow)
AgeCommit message (Collapse)AuthorFilesLines
2024-01-15Tests: pathlib used where appropriateAndrei Zeliankou1-6/+4
Also fixed various pylint errors and style issues.
2023-11-08Tests: 8XXX used as default port range.Andrei Zeliankou1-1/+1
After the launch of the project, the testing infrastructure was shared with nginx project in some cases. To avoid port overlap, a decision was made to shift the port range for Unit tests. This problem was resolved a long time ago and is no longer relevant, so it is now safe to use port 8XXX range as the default, as it is more appropriate for testing purposes.
2023-06-14Tests: get rid of classes in test files.Andrei Zeliankou1-1/+1
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-02-21Tests: switched to using f-strings.Andrei Zeliankou1-18/+18
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.
2022-11-29Tests: NJS.Andrei Zeliankou1-1/+3
2022-10-11Tests: don't try to return response when "no_recv" is True.Andrei Zeliankou1-0/+3
2022-08-25Tests: added tests with abstract UNIX sockets.Andrei Zeliankou1-1/+1
2022-07-28Tests: added flags to search functions in proto.py.Andrei Zeliankou1-3/+1
Also removed unnesessary re.compile() calls.
2022-04-11Tests: style.Andrei Zeliankou1-3/+1
2021-07-23Tests: added SNI test without hostname in request.Andrei Zeliankou1-1/+1
2021-04-05Tests: style.Andrei Zeliankou1-9/+14
2021-03-26Tests: SNI.Andrei Zeliankou1-1/+2
2020-12-09Tests: TestUnit class removed.Andrei Zeliankou1-2/+1
Prerequisite checks moved to the fixture in conftest.py.
2020-12-06Tests: options moved to the separate class.Andrei Zeliankou1-1/+1
This change is necessary to separate the logic and prevent possible circular dependency.
2020-11-16Tests: fixing tests interrupt in terminal.Max Romanov1-2/+8
KeyboardInterrupt re-raised.
2020-10-19Tests: fixed unit.log print.Andrei Zeliankou1-18/+0
2020-10-07Tests: minor fixes.Andrei Zeliankou1-2/+2
2020-09-22Tests: using dict.get() method with default value.Max Romanov1-18/+9
No functional changes. Only code readability improved.
2020-09-16Tests: migrated to the pytest.Andrei Zeliankou1-15/+17
2020-05-15Tests: style.Andrei Zeliankou1-3/+4
2020-04-14Tests: minor fixes and style.Andrei Zeliankou1-6/+2
2020-04-03Tests: added notification on "read_timeout" expiration.Andrei Zeliankou1-2/+16
2020-03-23Tests: increase default "read_timeout" value to 60s.Andrei Zeliankou1-13/+14
This change is necessary to avoid errors on slow hosts. Also slightly reworked argument passing to the recvall() function.
2020-03-23Tests: added notification on unsuccessful connect().Andrei Zeliankou1-1/+1
2020-03-02Tests: truncated huge messages while logging.Andrei Zeliankou1-12/+33
2020-02-05Tests: add helper for form-data and multipart.Tiago Natel de Moura1-0/+73
2019-11-26Tests: added getjson() helper.Tiago Natel1-0/+20
2019-11-26Tests: parsing of "Transfer-Encoding: chunked" responses.Tiago Natel1-6/+56
2019-11-14Tests: waitforsocket() introduced.Andrei Zeliankou1-0/+18
2019-11-08Tests: fixed operator in http.py.Andrey Zelenkov1-1/+1
2019-09-18Tests: added read_buffer_size option in http().Andrey Zelenkov1-1/+8
2019-09-17Tests: head() method introduced.Andrey Zelenkov1-0/+3
2019-08-14Tests: print decoded strings in detailed mode, if possible.Andrey Zelenkov1-2/+10
2019-04-09Tests: read_timeout increased.Andrey Zelenkov1-2/+2
2019-03-28Tests: unit module refactoring.Andrey Zelenkov1-0/+162