Skip to content

Commit 13b987c

Browse files
committed
update tests
1 parent 24f8af5 commit 13b987c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tests/test_api.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@
2626
local = os.environ["LOCAL"] == "True"
2727
py_version = f"{sys.version_info.major}.{sys.version_info.minor}"
2828

29+
if py_version in ["3.10", "3.11", "3.12"]:
30+
time.sleep(300)
31+
2932
movie_ids = {
3033
"3.6": {"id": 11, "name": "Star Wars"},
3134
"3.7": {"id": 1891, "name": "The Empire Strikes Back"},
@@ -101,7 +104,9 @@ def test_aa_session(self):
101104
v4_url = self.api_v4_session.v4_authenticate()
102105
if local:
103106
print(f"\n\nApprove URL: {v4_url}")
104-
time.sleep(30)
107+
with open("url.txt", "w") as file1:
108+
file1.write(v4_url)
109+
time.sleep(120)
105110
else:
106111
git = Github(gh_token)
107112
repo = git.get_user("meisnate12").get_repo("TMDbAPIs")
@@ -229,6 +234,7 @@ def test_discover(self):
229234
movies.get_results(-1)
230235
self.assertEqual(len(movies.get_results(50)), 50)
231236
self.assertGreater(len(movies.get_results()), 50)
237+
movies.load_page(1)
232238
self.assertIsNotNone([m for m in movies])
233239
self.assertIsNotNone(movies[1])
234240
tv_shows = self.api.discover_tv_shows(with_companies=1)

0 commit comments

Comments
 (0)