summaryrefslogtreecommitdiffhomepage
path: root/test/test_python_environment.py (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-06-14Tests: get rid of classes in test files.Andrei Zeliankou1-144/+151
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/+2
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-02-21Tests: switched to using f-strings.Andrei Zeliankou1-6/+6
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.
2020-09-16Tests: migrated to the pytest.Andrei Zeliankou1-66/+42
2020-04-24Tests: introduced module version specification in prerequisites.Andrei Zeliankou1-1/+1
2019-11-09Tests: fixed tests to run as root.Tiago Natel1-8/+8
- The mode of testdir was changed to allow reading from other users/groups. - The java multipart test now uploads the file into an app writable dir. - The build directory was made readable for other users. - The python environment test now uses the HOME env var instead of PWD because the latter is not set by the root shell (/bin/sh) by default. - The node `node_modules` directory now is copied into the `testdir` instead of using symlinks.
2019-09-14Tests: refactored prerequisites model.Andrey Zelenkov1-1/+1
2019-04-09Tests: simplified module checking.Andrey Zelenkov1-2/+1
2019-03-28Tests: unit module refactoring.Andrey Zelenkov1-5/+4
2019-03-26Tests: style.Andrey Zelenkov1-81/+134
2018-11-15Tests: added command line arguments parsing in tests.Andrey Zelenkov1-1/+1
Added the following command line arguments: -d, --detailed: Show detailed output for tests Usage examples: ./test/run.py --detailed python3 test/test_access_log.py --detailed python3 test/test_access_log.py -d TestUnitAccessLog.test_access_log_ipv6 -l, --log: Save unit.log after the test execution Usage examples: ./test/run.py -l python3 test/test_access_log.py -l python3 test/test_access_log.py --log TestUnitAccessLog.test_access_log_ipv6
2018-09-06Tests: used relative path for configuration.Andrey Zelenkov1-11/+11
2018-05-29Tests: configuration of environment variables.Andrey Zelenkov1-0/+128