forked from loafle/openapi-generator-original
[python-experimental] Quicken package loading (#6437)
* apis and models contains all apis and models, omits loading them in the package namespace * Runs git add -a and commits it * Fixes test_outer_enum.py * Fixes test_fruit.py * Updates test_fruit and test_mammal * Fixes test_parent_pet * Updates test_discard_unknown_properties.py * Updates test_deserialization.py * Updates v2 docs md files for apis + the readme * Fixes v2 tests * v2 doc updates * Updates v3 docs * Reverts python_doc_auth_partial.mustache * Adds sys to v3 tests * Adds FILES update Co-authored-by: Justin Black <justinblack@justins-air.lan>
This commit is contained in:
@@ -11,10 +11,11 @@
|
||||
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import petstore_api
|
||||
from petstore_api.model.player import Player
|
||||
|
||||
|
||||
class TestPlayer(unittest.TestCase):
|
||||
@@ -29,13 +30,13 @@ class TestPlayer(unittest.TestCase):
|
||||
def testPlayer(self):
|
||||
"""Test Player"""
|
||||
# we can make a player without an enemy_player property
|
||||
jane = petstore_api.Player(name="Jane")
|
||||
jane = Player(name="Jane")
|
||||
# we can make a player with an enemy_player
|
||||
sally = petstore_api.Player(name="Sally", enemy_player=jane)
|
||||
sally = Player(name="Sally", enemy_player=jane)
|
||||
# we can make a player with an inline enemy_player
|
||||
jim = petstore_api.Player(
|
||||
jim = Player(
|
||||
name="Jim",
|
||||
enemy_player=petstore_api.Player(name="Sam")
|
||||
enemy_player=Player(name="Sam")
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user