summaryrefslogtreecommitdiffhomepage
path: root/test/test_asgi_lifespan.py (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-06-14Tests: get rid of classes in test files.Andrei Zeliankou1-81/+85
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-12Tests: prerequisites checking reworked.Andrei Zeliankou1-5/+4
Prerequisites check moved to the module level to simplify class structure. Discovery and prerequisites checks functions moved to the separate files. Introduced "require" fixture to provide per-test requirements check.
2023-05-29Tests: more fixtures.Andrei Zeliankou1-7/+7
Common methods from applications/proto.py converted to the fixtures. sysctl check moved to the specific file where it is using. Some options moved to the constructor to have early access.
2023-02-21Tests: switched to using f-strings.Andrei Zeliankou1-7/+8
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-01-31Tests: removed TestApplicationTLS.get_server_certificate().Andrei Zeliankou1-2/+4
distutils.version is replaced by packaging.version. Also minor style fixes.
2021-12-12Tests: fixed type of applications.Andrei Zeliankou1-1/+1
2021-11-02Tests: removed unused imports.Andrei Zeliankou1-1/+0
2021-10-18Tests: style.Andrei Zeliankou1-1/+0
2021-05-20Tests: Python targets.Oisin Canty1-26/+69
2021-04-05Tests: style.Andrei Zeliankou1-0/+1
2021-01-13Tests: style.Andrei Zeliankou1-1/+0
2020-12-08Tests: utils module introduced.Andrei Zeliankou1-1/+0
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-10-19Tests: fixed unit.log print.Andrei Zeliankou1-1/+2
2020-10-07Tests: minor fixes.Andrei Zeliankou1-4/+11
2020-10-06Tests: fixed tests to run as root.Andrei Zeliankou1-1/+3
2020-10-05Tests: added ASGI Lifespan.Andrei Zeliankou1-0/+71