summaryrefslogtreecommitdiffhomepage
path: root/test/test_usr1.py (follow)
AgeCommit message (Collapse)AuthorFilesLines
2024-01-15Tests: pathlib used where appropriateAndrei Zeliankou1-12/+10
Also fixed various pylint errors and style issues.
2023-06-14Tests: get rid of classes in test files.Andrei Zeliankou1-58/+54
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-05-29Tests: more fixtures.Andrei Zeliankou1-8/+12
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-5/+5
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-04-11Tests: style.Andrei Zeliankou1-3/+1
2021-04-08Tests: preserving unit.log when run without restart.Max Romanov1-24/+31
Introducing "unit.log.Log" class for "unit.log" file management. Moving "findall()" function into TestApplicationProto. Using "os.kill()" to send signals.
2021-01-12Tests: unit_stop() removed where possible.Andrei Zeliankou1-5/+0
Since wait_for_record() was introduced there is no need to stop Unit before parsing unit.log.
2020-12-08Tests: utils module introduced.Andrei Zeliankou1-1/+1
2020-10-19Tests: fixed unit.log print.Andrei Zeliankou1-10/+11
2020-10-07Tests: minor fixes.Andrei Zeliankou1-1/+1
2020-09-16Tests: migrated to the pytest.Andrei Zeliankou1-42/+34
2020-05-15Tests: style.Andrei Zeliankou1-1/+1
2020-04-24Tests: introduced module version specification in prerequisites.Andrei Zeliankou1-1/+1
2020-04-14Tests: minor fixes and style.Andrei Zeliankou1-1/+1
2020-03-30Handling change file message in libunit.Max Romanov1-1/+0
This is required for proper log file rotation action.
2020-03-12Tests: fixed race in USR1 signal tests.Andrei Zeliankou1-19/+22
Also, minor style fixes applied.
2019-10-23Tests: added USR1 signal test for unit.log.Andrey Zelenkov1-0/+92