Tests: pathlib used where appropriate

Also fixed various pylint errors and style issues.
This commit is contained in:
Andrei Zeliankou
2024-01-15 15:48:58 +00:00
parent e95a91cbfa
commit 5a8337933d
72 changed files with 306 additions and 256 deletions

View File

@@ -8,6 +8,7 @@ import venv
import pytest
from packaging import version
from unit.applications.lang.python import ApplicationPython
prerequisites = {'modules': {'python': 'all'}}
@@ -586,8 +587,8 @@ def test_python_application_encoding():
if not matches:
pytest.skip('no available locales')
def unify(str):
str.upper().replace('-', '').replace('_', '')
def unify(enc):
enc.upper().replace('-', '').replace('_', '')
for loc in matches:
assert 'success' in client.conf(