From 55d8687566c056bc5b68ca979b24d7d13e09809f Mon Sep 17 00:00:00 2001 From: Akash <64683866+akamhy@users.noreply.github.com> Date: Sat, 18 Jul 2020 16:58:23 +0530 Subject: [PATCH] Update test_1.py --- tests/test_1.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_1.py b/tests/test_1.py index b288745..73eb622 100644 --- a/tests/test_1.py +++ b/tests/test_1.py @@ -30,8 +30,8 @@ def test_save(): "www.w3schools.com", "www.youtube.com" ] - - url1=random.choices(url_list) + x = random.randint(0, len(url_list)-1) + url1 = url_list[x] target = waybackpy.Url(url1, "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1944.0 Safari/537.36") archived_url1 = target.save() assert url1 in archived_url1