forked from loafle/openapi-generator-original
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:
parent
5bccbf6734
commit
ffe5df8fa1
@ -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
|
||||
|
||||
|
1
pom.xml
1
pom.xml
@ -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`
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user