File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed
Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change 44except (ModuleNotFoundError , ImportError ):
55 from ...phub import Client
66
7- url = "https://de. pornhub.com/pornstar/nancy-a"
7+ url = "https://pornhub.com/pornstar/nancy-a"
88client = Client (language = "en" ) # Make a delay, so that PornHub isn't stressed too much
99model = client .get_user (url )
1010
@@ -14,11 +14,22 @@ def test_info():
1414
1515
1616def test_avatar ():
17- assert isinstance (model .avatar .url , str ) and len (model .avatar .url ) > 5
17+ for i in range (5 ): # Because PornHub is sometimes just stupid.
18+ try :
19+ assert isinstance (model .avatar .url , str ) and len (model .avatar .url ) > 5
1820
21+ except AssertionError :
22+ model .refresh ()
23+ continue
1924
2025def test_bio ():
21- assert isinstance (model .bio , str ) and len (model .bio ) > 1
26+ for i in range (5 ):
27+ try :
28+ assert isinstance (model .bio , str ) and len (model .bio ) > 1
29+
30+ except AssertionError :
31+ model .refresh ()
32+ continue
2233
2334
2435def test_uploads ():
You can’t perform that action at this time.
0 commit comments