Update test_1.py

This commit is contained in:
Akash 2020-07-18 16:58:23 +05:30 committed by GitHub
parent 0fa28527af
commit 55d8687566
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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