Forgot to join deps
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
boardmate_api API
|
||||
|
||||
boardmate_api API
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
|
||||
import unittest
|
||||
|
||||
from board_mate.game.api.game_api import GameApi # noqa: E501
|
||||
|
||||
|
||||
class TestGameApi(unittest.TestCase):
|
||||
"""GameApi unit test stubs"""
|
||||
|
||||
def setUp(self) -> None:
|
||||
self.api = GameApi() # noqa: E501
|
||||
|
||||
def tearDown(self) -> None:
|
||||
pass
|
||||
|
||||
def test_add_move(self) -> None:
|
||||
"""Test case for add_move
|
||||
|
||||
POST moves/add/{gameId} # noqa: E501
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_create_party(self) -> None:
|
||||
"""Test case for create_party
|
||||
|
||||
POST create # noqa: E501
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_retrieve_games(self) -> None:
|
||||
"""Test case for retrieve_games
|
||||
|
||||
GET games/{id} # noqa: E501
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
@@ -0,0 +1,55 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
boardmate_api API
|
||||
|
||||
boardmate_api API
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
from board_mate.game.models.game_dto import GameDto # noqa: E501
|
||||
|
||||
class TestGameDto(unittest.TestCase):
|
||||
"""GameDto unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional) -> GameDto:
|
||||
"""Test GameDto
|
||||
include_option is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# uncomment below to create an instance of `GameDto`
|
||||
"""
|
||||
model = GameDto() # noqa: E501
|
||||
if include_optional:
|
||||
return GameDto(
|
||||
white_name = '',
|
||||
black_name = '',
|
||||
time_value = 56,
|
||||
increment = 56
|
||||
)
|
||||
else:
|
||||
return GameDto(
|
||||
)
|
||||
"""
|
||||
|
||||
def testGameDto(self):
|
||||
"""Test GameDto"""
|
||||
# inst_req_only = self.make_instance(include_optional=False)
|
||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
@@ -0,0 +1,52 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
boardmate_api API
|
||||
|
||||
boardmate_api API
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
from board_mate.game.models.move_dto import MoveDto # noqa: E501
|
||||
|
||||
class TestMoveDto(unittest.TestCase):
|
||||
"""MoveDto unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional) -> MoveDto:
|
||||
"""Test MoveDto
|
||||
include_option is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# uncomment below to create an instance of `MoveDto`
|
||||
"""
|
||||
model = MoveDto() # noqa: E501
|
||||
if include_optional:
|
||||
return MoveDto(
|
||||
notation = ''
|
||||
)
|
||||
else:
|
||||
return MoveDto(
|
||||
)
|
||||
"""
|
||||
|
||||
def testMoveDto(self):
|
||||
"""Test MoveDto"""
|
||||
# inst_req_only = self.make_instance(include_optional=False)
|
||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
@@ -0,0 +1,54 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
boardmate_api API
|
||||
|
||||
boardmate_api API
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
from board_mate.game.models.response_body_game_dto import ResponseBodyGameDto # noqa: E501
|
||||
|
||||
class TestResponseBodyGameDto(unittest.TestCase):
|
||||
"""ResponseBodyGameDto unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional) -> ResponseBodyGameDto:
|
||||
"""Test ResponseBodyGameDto
|
||||
include_option is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# uncomment below to create an instance of `ResponseBodyGameDto`
|
||||
"""
|
||||
model = ResponseBodyGameDto() # noqa: E501
|
||||
if include_optional:
|
||||
return ResponseBodyGameDto(
|
||||
data = None,
|
||||
message = '',
|
||||
success = True
|
||||
)
|
||||
else:
|
||||
return ResponseBodyGameDto(
|
||||
)
|
||||
"""
|
||||
|
||||
def testResponseBodyGameDto(self):
|
||||
"""Test ResponseBodyGameDto"""
|
||||
# inst_req_only = self.make_instance(include_optional=False)
|
||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
@@ -0,0 +1,54 @@
|
||||
# coding: utf-8
|
||||
|
||||
"""
|
||||
boardmate_api API
|
||||
|
||||
boardmate_api API
|
||||
|
||||
The version of the OpenAPI document: 1.0.0
|
||||
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
||||
|
||||
Do not edit the class manually.
|
||||
""" # noqa: E501
|
||||
|
||||
|
||||
import unittest
|
||||
import datetime
|
||||
|
||||
from board_mate.game.models.response_body_string import ResponseBodyString # noqa: E501
|
||||
|
||||
class TestResponseBodyString(unittest.TestCase):
|
||||
"""ResponseBodyString unit test stubs"""
|
||||
|
||||
def setUp(self):
|
||||
pass
|
||||
|
||||
def tearDown(self):
|
||||
pass
|
||||
|
||||
def make_instance(self, include_optional) -> ResponseBodyString:
|
||||
"""Test ResponseBodyString
|
||||
include_option is a boolean, when False only required
|
||||
params are included, when True both required and
|
||||
optional params are included """
|
||||
# uncomment below to create an instance of `ResponseBodyString`
|
||||
"""
|
||||
model = ResponseBodyString() # noqa: E501
|
||||
if include_optional:
|
||||
return ResponseBodyString(
|
||||
data = '',
|
||||
message = '',
|
||||
success = True
|
||||
)
|
||||
else:
|
||||
return ResponseBodyString(
|
||||
)
|
||||
"""
|
||||
|
||||
def testResponseBodyString(self):
|
||||
"""Test ResponseBodyString"""
|
||||
# inst_req_only = self.make_instance(include_optional=False)
|
||||
# inst_req_and_optional = self.make_instance(include_optional=True)
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
Reference in New Issue
Block a user