summaryrefslogtreecommitdiffhomepage
path: root/test/test_static.py (follow)
AgeCommit message (Collapse)AuthorFilesLines
2024-01-15Tests: pathlib used where appropriateAndrei Zeliankou1-29/+17
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-310/+324
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-2/+0
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-25Tests: unified setup method usage.Andrei Zeliankou1-12/+10
To make fixtures accessible inside of setup methods in tests all these methods are renamed to the "setup_method_fixture" and decorated by autouse flag. Also all setup methods moved to the top of the files.
2023-02-21Tests: switched to using f-strings.Andrei Zeliankou1-32/+34
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-15Tests: removed migration test.Andrei Zeliankou1-46/+0
Migration of "share" behaviour was dropped after b57b4749b993.
2022-10-11Tests: don't try to return response when "no_recv" is True.Andrei Zeliankou1-2/+2
2022-05-30Tests: added tests for "index" (string) option.Alejandro Colomar1-0/+28
2022-04-11Tests: style.Andrei Zeliankou1-13/+15
2022-01-31Tests: removed TestApplicationTLS.get_server_certificate().Andrei Zeliankou1-1/+2
distutils.version is replaced by packaging.version. Also minor style fixes.
2021-11-04Tests: added migration test for "share".Andrei Zeliankou1-0/+45
2021-10-18Tests: style.Andrei Zeliankou1-1/+0
2021-09-30Static: variables in the "share" option.Zhidao HONG1-1/+3
This commit supports variable in the "share" option, the finding path to file serve is the value from "share". An example: { "share": "/www/data/static$uri" }
2021-05-05Tests: added tests for openat2() features.Andrei Zeliankou1-8/+0
2021-04-05Tests: style.Andrei Zeliankou1-7/+4
2021-01-13Tests: style.Andrei Zeliankou1-1/+0
2020-12-08Tests: utils module introduced.Andrei Zeliankou1-1/+1
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-0/+3
KeyboardInterrupt re-raised.
2020-10-19Tests: fixed unit.log print.Andrei Zeliankou1-38/+39
2020-10-07Tests: minor fixes.Andrei Zeliankou1-2/+3
2020-09-30Tests: fixed test_static_space_in_name.Andrei Zeliankou1-1/+1
2020-09-16Tests: migrated to the pytest.Andrei Zeliankou1-316/+213
2020-05-15Tests: style.Andrei Zeliankou1-0/+1
2020-02-21Tests: more static tests.Andrei Zeliankou1-4/+26
2019-10-23Tests: more static tests.Andrey Zelenkov1-0/+6
2019-09-24Tests: static tests with file system objects.Andrey Zelenkov1-0/+24
2019-09-19Tests: serving static files.Andrey Zelenkov1-0/+376