File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 26
26
local = os .environ ["LOCAL" ] == "True"
27
27
py_version = f"{ sys .version_info .major } .{ sys .version_info .minor } "
28
28
29
+ if py_version in ["3.10" , "3.11" , "3.12" ]:
30
+ time .sleep (300 )
31
+
29
32
movie_ids = {
30
33
"3.6" : {"id" : 11 , "name" : "Star Wars" },
31
34
"3.7" : {"id" : 1891 , "name" : "The Empire Strikes Back" },
@@ -101,7 +104,9 @@ def test_aa_session(self):
101
104
v4_url = self .api_v4_session .v4_authenticate ()
102
105
if local :
103
106
print (f"\n \n Approve URL: { v4_url } " )
104
- time .sleep (30 )
107
+ with open ("url.txt" , "w" ) as file1 :
108
+ file1 .write (v4_url )
109
+ time .sleep (120 )
105
110
else :
106
111
git = Github (gh_token )
107
112
repo = git .get_user ("meisnate12" ).get_repo ("TMDbAPIs" )
@@ -229,6 +234,7 @@ def test_discover(self):
229
234
movies .get_results (- 1 )
230
235
self .assertEqual (len (movies .get_results (50 )), 50 )
231
236
self .assertGreater (len (movies .get_results ()), 50 )
237
+ movies .load_page (1 )
232
238
self .assertIsNotNone ([m for m in movies ])
233
239
self .assertIsNotNone (movies [1 ])
234
240
tv_shows = self .api .discover_tv_shows (with_companies = 1 )
You can’t perform that action at this time.
0 commit comments