File tree Expand file tree Collapse file tree 6 files changed +8
-13
lines changed
java/io/swagger/codegen/v3/generators/python
resources/handlebars/python Expand file tree Collapse file tree 6 files changed +8
-13
lines changed Original file line number Diff line number Diff line change @@ -237,8 +237,6 @@ public void processOpts() {
237
237
modelPackage = packageName + "." + modelPackage ;
238
238
apiPackage = packageName + "." + apiPackage ;
239
239
240
- copyFistAllOfProperties = true ;
241
-
242
240
}
243
241
244
242
private static String dropDots (String str ) {
Original file line number Diff line number Diff line change @@ -7,15 +7,15 @@ from __future__ import absolute_import
7
7
import unittest
8
8
9
9
import { {packageName} }
10
- from { {apiPackage} }.{ {classVarName} } import { {classname} } # noqa: E501
10
+ from { {packageName } }. { { apiPackage} }.{ {classVarName} } import { {classname} } # noqa: E501
11
11
from { {packageName} }.rest import ApiException
12
12
13
13
14
14
class { {#operations} }Test{ {classname} }(unittest.TestCase):
15
15
"""{ {classname} } unit test stubs"""
16
16
17
17
def setUp(self):
18
- self.api = { {apiPackage } }. { {classVarName } }. { { classname} }() # noqa: E501
18
+ self.api = { {classname} }() # noqa: E501
19
19
20
20
def tearDown(self):
21
21
pass
Original file line number Diff line number Diff line change @@ -6,11 +6,14 @@ import pprint
6
6
import re # noqa: F401
7
7
8
8
import six
9
-
9
+ { {#imports} }{ {#@first} }
10
+ { {/@first} }
11
+ { {import} } # noqa: F401,E501
12
+ { {/imports} }
10
13
11
14
{ {#models} }
12
15
{ {#model} }
13
- class { {classname} }(object):
16
+ class { {classname} }({ {#parent } } { {parent } } { {/parent } } { {^parent } } object{ {/parent } } ):
14
17
"""NOTE: This class is auto generated by the swagger code generator program.
15
18
16
19
Do not edit the class manually.
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import unittest
9
9
{ {#models} }
10
10
{ {#model} }
11
11
import { {packageName} }
12
- from { {modelPackage} }.{ {classFilename} } import { {classname} } # noqa: E501
12
+ from { {packageName } }. { { modelPackage} }.{ {classFilename} } import { {classname} } # noqa: E501
13
13
from { {packageName} }.rest import ApiException
14
14
15
15
Original file line number Diff line number Diff line change 1
1
[tox]
2
- { {^asyncio} }
3
- envlist = py27, py3
4
- { {/asyncio} }
5
- { {#asyncio} }
6
2
envlist = py3
7
- { {/asyncio} }
8
3
9
4
[testenv]
10
5
deps=-r{ toxinidir} /requirements.txt
Original file line number Diff line number Diff line change 1
1
# ref: https://docs.travis-ci.com/user/languages/python
2
2
language: python
3
3
python:
4
- - "2.7"
5
4
- "3.2"
6
5
- "3.3"
7
6
- "3.4"
You can’t perform that action at this time.
0 commit comments