ESP32 now publishes on broker
This commit is contained in:
52
rpi/api-resources/board_mate_client/test/test_default_api.py
Normal file
52
rpi/api-resources/board_mate_client/test/test_default_api.py
Normal file
@@ -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_client.api.default_api import DefaultApi
|
||||
|
||||
|
||||
class TestDefaultApi(unittest.TestCase):
|
||||
"""DefaultApi unit chesscog-bck stubs"""
|
||||
|
||||
def setUp(self) -> None:
|
||||
self.api = DefaultApi()
|
||||
|
||||
def tearDown(self) -> None:
|
||||
pass
|
||||
|
||||
def test_add_move(self) -> None:
|
||||
"""Test case for add_move
|
||||
|
||||
POST moves/add/{gameId}
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_create_party(self) -> None:
|
||||
"""Test case for create_party
|
||||
|
||||
POST create
|
||||
"""
|
||||
pass
|
||||
|
||||
def test_retrieve_games(self) -> None:
|
||||
"""Test case for retrieve_games
|
||||
|
||||
GET games/{id}
|
||||
"""
|
||||
pass
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
54
rpi/api-resources/board_mate_client/test/test_game_dto.py
Normal file
54
rpi/api-resources/board_mate_client/test/test_game_dto.py
Normal file
@@ -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
|
||||
|
||||
from board_mate_client.models.game_dto import GameDto
|
||||
|
||||
class TestGameDto(unittest.TestCase):
|
||||
"""GameDto unit chesscog-bck 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()
|
||||
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()
|
||||
51
rpi/api-resources/board_mate_client/test/test_move_dto.py
Normal file
51
rpi/api-resources/board_mate_client/test/test_move_dto.py
Normal file
@@ -0,0 +1,51 @@
|
||||
# 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_client.models.move_dto import MoveDto
|
||||
|
||||
class TestMoveDto(unittest.TestCase):
|
||||
"""MoveDto unit chesscog-bck 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()
|
||||
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,53 @@
|
||||
# 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_client.models.response_body_game_dto import ResponseBodyGameDto
|
||||
|
||||
class TestResponseBodyGameDto(unittest.TestCase):
|
||||
"""ResponseBodyGameDto unit chesscog-bck 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()
|
||||
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,53 @@
|
||||
# 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_client.models.response_body_string import ResponseBodyString
|
||||
|
||||
class TestResponseBodyString(unittest.TestCase):
|
||||
"""ResponseBodyString unit chesscog-bck 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()
|
||||
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