Skip to content

Commit 3d6e97d

Browse files
committed
fix test
1 parent 4aae143 commit 3d6e97d

File tree

1 file changed

+66
-0
lines changed

1 file changed

+66
-0
lines changed

pynamodb_mate/tests/youtube.py

+66
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ def print_vip_attrs(self):
3636

3737

3838
class User(Entity):
39+
40+
class Meta:
41+
table_name = f"pynamodb-mate-test-youtube-entity-{PY_VER}-{PYNAMODB_VER}"
42+
region = "us-east-1"
43+
billing_mode = pm.constants.PAY_PER_REQUEST_BILLING_MODE
44+
3945
lookup_index = LookupIndex()
4046

4147
@property
@@ -44,6 +50,12 @@ def user_id(self) -> str:
4450

4551

4652
class Video(Entity):
53+
54+
class Meta:
55+
table_name = f"pynamodb-mate-test-youtube-entity-{PY_VER}-{PYNAMODB_VER}"
56+
region = "us-east-1"
57+
billing_mode = pm.constants.PAY_PER_REQUEST_BILLING_MODE
58+
4759
lookup_index = LookupIndex()
4860

4961
@property
@@ -52,6 +64,12 @@ def video_id(self) -> str:
5264

5365

5466
class Channel(Entity):
67+
68+
class Meta:
69+
table_name = f"pynamodb-mate-test-youtube-entity-{PY_VER}-{PYNAMODB_VER}"
70+
region = "us-east-1"
71+
billing_mode = pm.constants.PAY_PER_REQUEST_BILLING_MODE
72+
5573
lookup_index = LookupIndex()
5674

5775
@property
@@ -60,6 +78,12 @@ def channel_id(self) -> str:
6078

6179

6280
class Playlist(Entity):
81+
82+
class Meta:
83+
table_name = f"pynamodb-mate-test-youtube-entity-{PY_VER}-{PYNAMODB_VER}"
84+
region = "us-east-1"
85+
billing_mode = pm.constants.PAY_PER_REQUEST_BILLING_MODE
86+
6387
lookup_index = LookupIndex()
6488

6589
@property
@@ -68,6 +92,12 @@ def playlist_id(self) -> str:
6892

6993

7094
class VideoOwnership(Entity):
95+
96+
class Meta:
97+
table_name = f"pynamodb-mate-test-youtube-entity-{PY_VER}-{PYNAMODB_VER}"
98+
region = "us-east-1"
99+
billing_mode = pm.constants.PAY_PER_REQUEST_BILLING_MODE
100+
71101
lookup_index = LookupIndex()
72102

73103
@property
@@ -80,6 +110,12 @@ def user_id(self) -> str:
80110

81111

82112
class ChannelOwnership(Entity):
113+
114+
class Meta:
115+
table_name = f"pynamodb-mate-test-youtube-entity-{PY_VER}-{PYNAMODB_VER}"
116+
region = "us-east-1"
117+
billing_mode = pm.constants.PAY_PER_REQUEST_BILLING_MODE
118+
83119
lookup_index = LookupIndex()
84120

85121
@property
@@ -92,6 +128,12 @@ def user_id(self) -> str:
92128

93129

94130
class PlaylistOwnership(Entity):
131+
132+
class Meta:
133+
table_name = f"pynamodb-mate-test-youtube-entity-{PY_VER}-{PYNAMODB_VER}"
134+
region = "us-east-1"
135+
billing_mode = pm.constants.PAY_PER_REQUEST_BILLING_MODE
136+
95137
lookup_index = LookupIndex()
96138

97139
@property
@@ -104,6 +146,12 @@ def user_id(self) -> str:
104146

105147

106148
class VideoChannelAssociation(Entity):
149+
150+
class Meta:
151+
table_name = f"pynamodb-mate-test-youtube-entity-{PY_VER}-{PYNAMODB_VER}"
152+
region = "us-east-1"
153+
billing_mode = pm.constants.PAY_PER_REQUEST_BILLING_MODE
154+
107155
lookup_index = LookupIndex()
108156

109157
@property
@@ -116,6 +164,12 @@ def channel_id(self) -> str:
116164

117165

118166
class VideoPlaylistAssociation(Entity):
167+
168+
class Meta:
169+
table_name = f"pynamodb-mate-test-youtube-entity-{PY_VER}-{PYNAMODB_VER}"
170+
region = "us-east-1"
171+
billing_mode = pm.constants.PAY_PER_REQUEST_BILLING_MODE
172+
119173
lookup_index = LookupIndex()
120174

121175
@property
@@ -128,6 +182,12 @@ def playlist_id(self) -> str:
128182

129183

130184
class ViewerSubscribeYoutuber(Entity):
185+
186+
class Meta:
187+
table_name = f"pynamodb-mate-test-youtube-entity-{PY_VER}-{PYNAMODB_VER}"
188+
region = "us-east-1"
189+
billing_mode = pm.constants.PAY_PER_REQUEST_BILLING_MODE
190+
131191
lookup_index = LookupIndex()
132192

133193
@property
@@ -140,6 +200,12 @@ def youtuber_id(self) -> str:
140200

141201

142202
class ViewerSubscribeChannel(Entity):
203+
204+
class Meta:
205+
table_name = f"pynamodb-mate-test-youtube-entity-{PY_VER}-{PYNAMODB_VER}"
206+
region = "us-east-1"
207+
billing_mode = pm.constants.PAY_PER_REQUEST_BILLING_MODE
208+
143209
lookup_index = LookupIndex()
144210

145211
@property

0 commit comments

Comments
 (0)