Turns python-legacy CI back on in circle, fixes python-legacy test (#11326)

* Turns python-legacy CI back on in circle, fixes python-legacy test

* Installs python 2.7 into circleci node 3

* Python 2.7 version changed to 2.7

* Switches back to py2714
This commit is contained in:
Justin Black 2022-01-16 01:12:38 -08:00 committed by GitHub
parent 5bccbf6734
commit ffe5df8fa1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 1 deletions

View File

@ -59,6 +59,7 @@ elif [ "$NODE_INDEX" = "3" ]; then
#sudo make altinstall
pyenv install --list
pyenv install 3.6.3
pyenv install 2.7.14
pyenv global 3.6.3
python3 --version

View File

@ -1283,6 +1283,7 @@
<module>samples/client/petstore/python</module>
<module>samples/client/petstore/python_disallowAdditionalPropertiesIfNotPresent</module>
<module>samples/openapi3/client/petstore/python</module>
<module>samples/openapi3/client/petstore/python-legacy</module>
<!-- TODO comment out below when the test for typescript-nestjs is ready
<module>samples/client/petstore/typescript-nestjs-v6-provided-in-root</module>-->
<!-- comment out due to error `npm run build`

View File

@ -13,7 +13,10 @@
from __future__ import absolute_import
import unittest
from unittest.mock import patch
try:
from unittest.mock import patch
except ImportError:
from mock import patch
import petstore_api
from petstore_api.api.fake_api import FakeApi # noqa: E501

View File

@ -20,6 +20,7 @@ fi
pip install -r $REQUIREMENTS_FILE | tee -a $REQUIREMENTS_OUT
### run tests
tox -l
tox -e py27 || exit 1
### static analysis of code