add openapi-generated client

This commit is contained in:
NoeBerdoz
2025-04-12 00:11:16 +02:00
parent d64bf40d46
commit f30ed175ee
51 changed files with 4590 additions and 0 deletions

View File

View File

@ -0,0 +1,45 @@
# coding: utf-8
"""
Master
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
The version of the OpenAPI document: 0.1.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from openapi_client.api.default_api import DefaultApi
class TestDefaultApi(unittest.TestCase):
"""DefaultApi unit test stubs"""
def setUp(self) -> None:
self.api = DefaultApi()
def tearDown(self) -> None:
pass
def test_game_decision_game_decision_post(self) -> None:
"""Test case for game_decision_game_decision_post
Game Decision
"""
pass
def test_game_start_game_start_post(self) -> None:
"""Test case for game_start_game_start_post
Game Start
"""
pass
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,56 @@
# coding: utf-8
"""
Master
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
The version of the OpenAPI document: 0.1.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from openapi_client.models.game_decision_request import GameDecisionRequest
class TestGameDecisionRequest(unittest.TestCase):
"""GameDecisionRequest unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> GameDecisionRequest:
"""Test GameDecisionRequest
include_optional 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 `GameDecisionRequest`
"""
model = GameDecisionRequest()
if include_optional:
return GameDecisionRequest(
decision = 'Accept',
session_id = '6e8af95a-1819-4ac4-82b7-88846cf907cc',
client_id = '2eb62743-b5e9-4225-b4b6-1ef4aaaf7813'
)
else:
return GameDecisionRequest(
decision = 'Accept',
session_id = '6e8af95a-1819-4ac4-82b7-88846cf907cc',
client_id = '2eb62743-b5e9-4225-b4b6-1ef4aaaf7813',
)
"""
def testGameDecisionRequest(self):
"""Test GameDecisionRequest"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,56 @@
# coding: utf-8
"""
Master
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
The version of the OpenAPI document: 0.1.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from openapi_client.models.game_decision_response import GameDecisionResponse
class TestGameDecisionResponse(unittest.TestCase):
"""GameDecisionResponse unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> GameDecisionResponse:
"""Test GameDecisionResponse
include_optional 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 `GameDecisionResponse`
"""
model = GameDecisionResponse()
if include_optional:
return GameDecisionResponse(
status = 'gameover',
score = 1,
client_id = '',
client_data = {passport=123456789}
)
else:
return GameDecisionResponse(
status = 'gameover',
score = 1,
)
"""
def testGameDecisionResponse(self):
"""Test GameDecisionResponse"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,52 @@
# coding: utf-8
"""
Master
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
The version of the OpenAPI document: 0.1.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from openapi_client.models.game_start_request import GameStartRequest
class TestGameStartRequest(unittest.TestCase):
"""GameStartRequest unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> GameStartRequest:
"""Test GameStartRequest
include_optional 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 `GameStartRequest`
"""
model = GameStartRequest()
if include_optional:
return GameStartRequest(
player_name = 'Haligali'
)
else:
return GameStartRequest(
player_name = 'Haligali',
)
"""
def testGameStartRequest(self):
"""Test GameStartRequest"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,62 @@
# coding: utf-8
"""
Master
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
The version of the OpenAPI document: 0.1.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from openapi_client.models.game_start_response import GameStartResponse
class TestGameStartResponse(unittest.TestCase):
"""GameStartResponse unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> GameStartResponse:
"""Test GameStartResponse
include_optional 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 `GameStartResponse`
"""
model = GameStartResponse()
if include_optional:
return GameStartResponse(
message = 'Game started successfully.',
session_id = '92ab2b1a-a3b5-4e36-af59-2d4083a18ee6',
player_id = 'some_key',
client_id = '42048bf6-5947-4797-bac9-348e23dcc904',
client_data = {data={}},
score = 0
)
else:
return GameStartResponse(
message = 'Game started successfully.',
session_id = '92ab2b1a-a3b5-4e36-af59-2d4083a18ee6',
player_id = 'some_key',
client_id = '42048bf6-5947-4797-bac9-348e23dcc904',
client_data = {data={}},
score = 0,
)
"""
def testGameStartResponse(self):
"""Test GameStartResponse"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,58 @@
# coding: utf-8
"""
Master
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
The version of the OpenAPI document: 0.1.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from openapi_client.models.http_validation_error import HTTPValidationError
class TestHTTPValidationError(unittest.TestCase):
"""HTTPValidationError unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> HTTPValidationError:
"""Test HTTPValidationError
include_optional 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 `HTTPValidationError`
"""
model = HTTPValidationError()
if include_optional:
return HTTPValidationError(
detail = [
openapi_client.models.validation_error.ValidationError(
loc = [
null
],
msg = '',
type = '', )
]
)
else:
return HTTPValidationError(
)
"""
def testHTTPValidationError(self):
"""Test HTTPValidationError"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,60 @@
# coding: utf-8
"""
Master
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
The version of the OpenAPI document: 0.1.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from openapi_client.models.validation_error import ValidationError
class TestValidationError(unittest.TestCase):
"""ValidationError unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> ValidationError:
"""Test ValidationError
include_optional 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 `ValidationError`
"""
model = ValidationError()
if include_optional:
return ValidationError(
loc = [
null
],
msg = '',
type = ''
)
else:
return ValidationError(
loc = [
null
],
msg = '',
type = '',
)
"""
def testValidationError(self):
"""Test ValidationError"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,50 @@
# coding: utf-8
"""
Master
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
The version of the OpenAPI document: 0.1.0
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
import unittest
from openapi_client.models.validation_error_loc_inner import ValidationErrorLocInner
class TestValidationErrorLocInner(unittest.TestCase):
"""ValidationErrorLocInner unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def make_instance(self, include_optional) -> ValidationErrorLocInner:
"""Test ValidationErrorLocInner
include_optional 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 `ValidationErrorLocInner`
"""
model = ValidationErrorLocInner()
if include_optional:
return ValidationErrorLocInner(
)
else:
return ValidationErrorLocInner(
)
"""
def testValidationErrorLocInner(self):
"""Test ValidationErrorLocInner"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
if __name__ == '__main__':
unittest.main()