diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d4228fdd..5715713e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -81,7 +81,7 @@ functional_test: - TOX_ENVS: - py310-django51-install - TOX_ENVS: - - py312-django51-coverage + - py313-django51-coverage js_tests: <<: *branch_js_tests diff --git a/tox.ini b/tox.ini index ccedc1a4..5a260062 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = flake,mypy,pylint,bandit,py312-django51-coverage,py310-django51-install,builddoc +envlist = flake,mypy,pylint,bandit,py313-django51-coverage,py310-django51-install,builddoc skipsdist = True allowlist_externals = rm @@ -21,6 +21,7 @@ setenv = coverage: SETUPTOOLS_ENABLE_FEATURES = legacy-editable COVRC = ../pyproject.toml EXECUTE_ARGS = test_proj test -v 2 --failfast --parallel auto + PYTHON_JIT = 1 CCACHE_DIR = {envdir}/.ccache TEST_PROJ_LOG_LEVEL = DEBUG TEST_PROJ_DB_TYPE = mysql diff --git a/tox_build.ini b/tox_build.ini index 1d361d1e..f2b8057f 100644 --- a/tox_build.ini +++ b/tox_build.ini @@ -1,5 +1,5 @@ [tox] -envlist = py310-build,py31{1,2}-wheel,auditwheel +envlist = py310-build,py31{1,2,3}-wheel,auditwheel skipsdist = True [testenv] diff --git a/vstutils/api/base.py b/vstutils/api/base.py index 1be53b12..67e75e5f 100644 --- a/vstutils/api/base.py +++ b/vstutils/api/base.py @@ -251,15 +251,15 @@ def get_description(self, path, method): return str(submethod.__doc__).strip() # nocv if method == 'GET' and '{' not in path[:-1].split('/')[-1]: action = 'list' - elif method == 'POST': + elif method == 'POST': # nocv action = 'create' - elif method == 'GET': + elif method == 'GET': # nocv action = 'retrieve' - elif method == 'PUT': + elif method == 'PUT': # nocv action = 'update' - elif method == 'PATCH': + elif method == 'PATCH': # nocv action = 'partial_update' - elif method == 'DELETE': + elif method == 'DELETE': # nocv action = 'destroy' method_view_obj.action = action if method_view_obj.schema is None: