Python-server workflow fixes + pytest (#17060)

* Fix referenced path for tests

* Explicit dependencies

Flask 2.3 has breaking changes

* Marks all async tests with pytest.mark.asyncio

Otherwise they are skipped by pytest and coverage is zero

* Fix path for pytest

On suggestion from https://github.com/OpenAPITools/openapi-generator/pull/17060#discussion_r1392666369
This commit is contained in:
Aurélien Joga
2023-11-18 03:10:10 +01:00
committed by GitHub
parent a2c1b02840
commit 1f5b590d5a
10 changed files with 15 additions and 8 deletions

View File

@@ -23,7 +23,7 @@ pip install -r $REQUIREMENTS_FILE | tee -a $REQUIREMENTS_OUT
tox || exit 1
### static analysis of code
flake8 --show-source petstore_api/
flake8 --show-source ./src
### deactivate virtualenv
if [ $DEACTIVE == true ]; then