Skip to content

Commit d4fe850

Browse files
regenerated with tests
1 parent 561bb5a commit d4fe850

36 files changed

Lines changed: 210 additions & 171 deletions

.openapi-generator/FILES

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,39 @@ setup.cfg
4343
setup.py
4444
test-requirements.txt
4545
test/__init__.py
46+
test/test_create_transaction_dto.py
47+
test/test_creator_dto.py
48+
test/test_creator_order_by.py
49+
test/test_creator_partial_dto.py
50+
test/test_creator_partial_dto_pagination_dto.py
51+
test/test_creator_rarity_dto.py
52+
test/test_creator_share_dto.py
53+
test/test_creator_transaction_dto.py
54+
test/test_creators_api.py
55+
test/test_discord_token_dto.py
56+
test/test_link_discord_twitch_dto.py
57+
test/test_loot_box_dto.py
58+
test/test_loot_box_result_dto.py
59+
test/test_model_id.py
60+
test/test_order_direction.py
61+
test/test_player_dto.py
62+
test/test_player_dto_pagination_dto.py
63+
test/test_player_order_by.py
64+
test/test_player_partial_dto.py
65+
test/test_player_share_dto.py
66+
test/test_player_transaction_dto.py
67+
test/test_player_type.py
68+
test/test_players_api.py
69+
test/test_portfolio_snapshot_dto.py
70+
test/test_rarity.py
71+
test/test_sessions_api.py
72+
test/test_stream_status_dto.py
73+
test/test_time_step.py
74+
test/test_token_dto.py
75+
test/test_transaction_action.py
76+
test/test_transactions_api.py
77+
test/test_twitch_user_dto.py
78+
test/test_vote_dto.py
4679
tox.ini
4780
ttx/__init__.py
4881
ttx/api/__init__.py

README.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,26 @@
1+
# ttx
2+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
13

2-
Python API wrapper for TTX.
4+
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
5+
6+
- API version: 1.0
7+
- Package version: 1.0.0
8+
- Generator version: 7.13.0
9+
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
310

411
## Requirements.
512

613
Python 3.9+
714

815
## Installation & Usage
9-
1016
### pip install
1117

1218
If the python package is hosted on a repository, you can install directly using:
1319

1420
```sh
15-
pip install git+https://github.com/ttxdev/ttx.py.git
21+
pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
1622
```
17-
(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/ttxdev/ttx.py.git`)
23+
(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git`)
1824

1925
Then import the package:
2026
```python

pyproject.toml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
[tool.poetry]
22
name = "ttx"
33
version = "1.0.0"
4-
description = "TTX API wrapper"
5-
authors = ["TTX <https://github.com/ttxdev>"]
6-
license = "AGPL-3.0"
4+
description = "TTX.Api"
5+
authors = ["OpenAPI Generator Community <team@openapitools.org>"]
6+
license = "NoLicense"
77
readme = "README.md"
8-
repository = "https://github.com/ttxdev/ttx.py"
9-
keywords = []
10-
include = ["ttx_py/py.typed"]
8+
repository = "https://github.com/GIT_USER_ID/GIT_REPO_ID"
9+
keywords = ["OpenAPI", "OpenAPI-Generator", "TTX.Api"]
10+
include = ["ttx/py.typed"]
1111

1212
[tool.poetry.dependencies]
1313
python = "^3.9"
@@ -39,8 +39,8 @@ files = [
3939
#"test", # auto-generated tests
4040
"tests", # hand-written tests
4141
]
42-
43-
strict = true
42+
# TODO: enable "strict" once all these individual checks are passing
43+
# strict = true
4444

4545
# List from: https://mypy.readthedocs.io/en/stable/existing_code.html#introduce-stricter-options
4646
warn_unused_configs = true

test/test_create_transaction_dto.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
import unittest
1616

17-
from ttx_py.models.create_transaction_dto import CreateTransactionDto
17+
from ttx.models.create_transaction_dto import CreateTransactionDto
1818

1919
class TestCreateTransactionDto(unittest.TestCase):
2020
"""CreateTransactionDto unit test stubs"""

test/test_creator_dto.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
import unittest
1616

17-
from ttx_py.models.creator_dto import CreatorDto
17+
from ttx.models.creator_dto import CreatorDto
1818

1919
class TestCreatorDto(unittest.TestCase):
2020
"""CreatorDto unit test stubs"""
@@ -45,18 +45,18 @@ def make_instance(self, include_optional) -> CreatorDto:
4545
avatar_url = '',
4646
ticker = '',
4747
value = 56,
48-
stream_status = ttx_py.models.stream_status_dto.StreamStatusDto(
48+
stream_status = ttx.models.stream_status_dto.StreamStatusDto(
4949
is_live = True,
5050
started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
5151
ended_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ),
5252
history = [
53-
ttx_py.models.vote_dto.VoteDto(
53+
ttx.models.vote_dto.VoteDto(
5454
creator_id = 56,
5555
value = 56,
5656
time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), )
5757
],
5858
transactions = [
59-
ttx_py.models.creator_transaction_dto.CreatorTransactionDto(
59+
ttx.models.creator_transaction_dto.CreatorTransactionDto(
6060
id = 56,
6161
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
6262
updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
@@ -65,7 +65,7 @@ def make_instance(self, include_optional) -> CreatorDto:
6565
action = 'Buy',
6666
creator_id = 56,
6767
player_id = 56,
68-
player = ttx_py.models.player_partial_dto.PlayerPartialDto(
68+
player = ttx.models.player_partial_dto.PlayerPartialDto(
6969
id = 56,
7070
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
7171
updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
@@ -80,8 +80,8 @@ def make_instance(self, include_optional) -> CreatorDto:
8080
type = 'User', ), )
8181
],
8282
shares = [
83-
ttx_py.models.creator_share_dto.CreatorShareDto(
84-
player = ttx_py.models.player_partial_dto.PlayerPartialDto(
83+
ttx.models.creator_share_dto.CreatorShareDto(
84+
player = ttx.models.player_partial_dto.PlayerPartialDto(
8585
id = 56,
8686
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
8787
updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
@@ -109,18 +109,18 @@ def make_instance(self, include_optional) -> CreatorDto:
109109
avatar_url = '',
110110
ticker = '',
111111
value = 56,
112-
stream_status = ttx_py.models.stream_status_dto.StreamStatusDto(
112+
stream_status = ttx.models.stream_status_dto.StreamStatusDto(
113113
is_live = True,
114114
started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
115115
ended_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ),
116116
history = [
117-
ttx_py.models.vote_dto.VoteDto(
117+
ttx.models.vote_dto.VoteDto(
118118
creator_id = 56,
119119
value = 56,
120120
time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), )
121121
],
122122
transactions = [
123-
ttx_py.models.creator_transaction_dto.CreatorTransactionDto(
123+
ttx.models.creator_transaction_dto.CreatorTransactionDto(
124124
id = 56,
125125
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
126126
updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
@@ -129,7 +129,7 @@ def make_instance(self, include_optional) -> CreatorDto:
129129
action = 'Buy',
130130
creator_id = 56,
131131
player_id = 56,
132-
player = ttx_py.models.player_partial_dto.PlayerPartialDto(
132+
player = ttx.models.player_partial_dto.PlayerPartialDto(
133133
id = 56,
134134
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
135135
updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
@@ -144,8 +144,8 @@ def make_instance(self, include_optional) -> CreatorDto:
144144
type = 'User', ), )
145145
],
146146
shares = [
147-
ttx_py.models.creator_share_dto.CreatorShareDto(
148-
player = ttx_py.models.player_partial_dto.PlayerPartialDto(
147+
ttx.models.creator_share_dto.CreatorShareDto(
148+
player = ttx.models.player_partial_dto.PlayerPartialDto(
149149
id = 56,
150150
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
151151
updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),

test/test_creator_order_by.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
import unittest
1616

17-
from ttx_py.models.creator_order_by import CreatorOrderBy
17+
from ttx.models.creator_order_by import CreatorOrderBy
1818

1919
class TestCreatorOrderBy(unittest.TestCase):
2020
"""CreatorOrderBy unit test stubs"""

test/test_creator_partial_dto.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
import unittest
1616

17-
from ttx_py.models.creator_partial_dto import CreatorPartialDto
17+
from ttx.models.creator_partial_dto import CreatorPartialDto
1818

1919
class TestCreatorPartialDto(unittest.TestCase):
2020
"""CreatorPartialDto unit test stubs"""
@@ -45,12 +45,12 @@ def make_instance(self, include_optional) -> CreatorPartialDto:
4545
avatar_url = '',
4646
ticker = '',
4747
value = 56,
48-
stream_status = ttx_py.models.stream_status_dto.StreamStatusDto(
48+
stream_status = ttx.models.stream_status_dto.StreamStatusDto(
4949
is_live = True,
5050
started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
5151
ended_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ),
5252
history = [
53-
ttx_py.models.vote_dto.VoteDto(
53+
ttx.models.vote_dto.VoteDto(
5454
creator_id = 56,
5555
value = 56,
5656
time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), )
@@ -68,12 +68,12 @@ def make_instance(self, include_optional) -> CreatorPartialDto:
6868
avatar_url = '',
6969
ticker = '',
7070
value = 56,
71-
stream_status = ttx_py.models.stream_status_dto.StreamStatusDto(
71+
stream_status = ttx.models.stream_status_dto.StreamStatusDto(
7272
is_live = True,
7373
started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
7474
ended_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ),
7575
history = [
76-
ttx_py.models.vote_dto.VoteDto(
76+
ttx.models.vote_dto.VoteDto(
7777
creator_id = 56,
7878
value = 56,
7979
time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), )

test/test_creator_partial_dto_pagination_dto.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
import unittest
1616

17-
from ttx_py.models.creator_partial_dto_pagination_dto import CreatorPartialDtoPaginationDto
17+
from ttx.models.creator_partial_dto_pagination_dto import CreatorPartialDtoPaginationDto
1818

1919
class TestCreatorPartialDtoPaginationDto(unittest.TestCase):
2020
"""CreatorPartialDtoPaginationDto unit test stubs"""
@@ -36,7 +36,7 @@ def make_instance(self, include_optional) -> CreatorPartialDtoPaginationDto:
3636
if include_optional:
3737
return CreatorPartialDtoPaginationDto(
3838
data = [
39-
ttx_py.models.creator_partial_dto.CreatorPartialDto(
39+
ttx.models.creator_partial_dto.CreatorPartialDto(
4040
id = 56,
4141
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
4242
updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
@@ -47,12 +47,12 @@ def make_instance(self, include_optional) -> CreatorPartialDtoPaginationDto:
4747
avatar_url = '',
4848
ticker = '',
4949
value = 56,
50-
stream_status = ttx_py.models.stream_status_dto.StreamStatusDto(
50+
stream_status = ttx.models.stream_status_dto.StreamStatusDto(
5151
is_live = True,
5252
started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
5353
ended_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ),
5454
history = [
55-
ttx_py.models.vote_dto.VoteDto(
55+
ttx.models.vote_dto.VoteDto(
5656
creator_id = 56,
5757
value = 56,
5858
time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), )
@@ -63,7 +63,7 @@ def make_instance(self, include_optional) -> CreatorPartialDtoPaginationDto:
6363
else:
6464
return CreatorPartialDtoPaginationDto(
6565
data = [
66-
ttx_py.models.creator_partial_dto.CreatorPartialDto(
66+
ttx.models.creator_partial_dto.CreatorPartialDto(
6767
id = 56,
6868
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
6969
updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
@@ -74,12 +74,12 @@ def make_instance(self, include_optional) -> CreatorPartialDtoPaginationDto:
7474
avatar_url = '',
7575
ticker = '',
7676
value = 56,
77-
stream_status = ttx_py.models.stream_status_dto.StreamStatusDto(
77+
stream_status = ttx.models.stream_status_dto.StreamStatusDto(
7878
is_live = True,
7979
started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
8080
ended_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ),
8181
history = [
82-
ttx_py.models.vote_dto.VoteDto(
82+
ttx.models.vote_dto.VoteDto(
8383
creator_id = 56,
8484
value = 56,
8585
time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), )

test/test_creator_rarity_dto.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
import unittest
1616

17-
from ttx_py.models.creator_rarity_dto import CreatorRarityDto
17+
from ttx.models.creator_rarity_dto import CreatorRarityDto
1818

1919
class TestCreatorRarityDto(unittest.TestCase):
2020
"""CreatorRarityDto unit test stubs"""
@@ -35,7 +35,7 @@ def make_instance(self, include_optional) -> CreatorRarityDto:
3535
model = CreatorRarityDto()
3636
if include_optional:
3737
return CreatorRarityDto(
38-
creator = ttx_py.models.creator_partial_dto.CreatorPartialDto(
38+
creator = ttx.models.creator_partial_dto.CreatorPartialDto(
3939
id = 56,
4040
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
4141
updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
@@ -46,12 +46,12 @@ def make_instance(self, include_optional) -> CreatorRarityDto:
4646
avatar_url = '',
4747
ticker = '',
4848
value = 56,
49-
stream_status = ttx_py.models.stream_status_dto.StreamStatusDto(
49+
stream_status = ttx.models.stream_status_dto.StreamStatusDto(
5050
is_live = True,
5151
started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
5252
ended_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ),
5353
history = [
54-
ttx_py.models.vote_dto.VoteDto(
54+
ttx.models.vote_dto.VoteDto(
5555
creator_id = 56,
5656
value = 56,
5757
time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), )
@@ -60,7 +60,7 @@ def make_instance(self, include_optional) -> CreatorRarityDto:
6060
)
6161
else:
6262
return CreatorRarityDto(
63-
creator = ttx_py.models.creator_partial_dto.CreatorPartialDto(
63+
creator = ttx.models.creator_partial_dto.CreatorPartialDto(
6464
id = 56,
6565
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
6666
updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
@@ -71,12 +71,12 @@ def make_instance(self, include_optional) -> CreatorRarityDto:
7171
avatar_url = '',
7272
ticker = '',
7373
value = 56,
74-
stream_status = ttx_py.models.stream_status_dto.StreamStatusDto(
74+
stream_status = ttx.models.stream_status_dto.StreamStatusDto(
7575
is_live = True,
7676
started_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
7777
ended_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ),
7878
history = [
79-
ttx_py.models.vote_dto.VoteDto(
79+
ttx.models.vote_dto.VoteDto(
8080
creator_id = 56,
8181
value = 56,
8282
time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), )

test/test_creator_share_dto.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
import unittest
1616

17-
from ttx_py.models.creator_share_dto import CreatorShareDto
17+
from ttx.models.creator_share_dto import CreatorShareDto
1818

1919
class TestCreatorShareDto(unittest.TestCase):
2020
"""CreatorShareDto unit test stubs"""
@@ -35,7 +35,7 @@ def make_instance(self, include_optional) -> CreatorShareDto:
3535
model = CreatorShareDto()
3636
if include_optional:
3737
return CreatorShareDto(
38-
player = ttx_py.models.player_partial_dto.PlayerPartialDto(
38+
player = ttx.models.player_partial_dto.PlayerPartialDto(
3939
id = 56,
4040
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
4141
updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
@@ -52,7 +52,7 @@ def make_instance(self, include_optional) -> CreatorShareDto:
5252
)
5353
else:
5454
return CreatorShareDto(
55-
player = ttx_py.models.player_partial_dto.PlayerPartialDto(
55+
player = ttx.models.player_partial_dto.PlayerPartialDto(
5656
id = 56,
5757
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
5858
updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),

0 commit comments

Comments
 (0)