We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68078f6 commit 6d9cf74Copy full SHA for 6d9cf74
tests/test_main.py
@@ -111,6 +111,12 @@ async def test_main():
111
except Exception as e:
112
errors.append({"Error in": "safe_mode", "Error": e})
113
114
+ """Testing for errors in user agent"""
115
+ try:
116
+ await j.get_joke(user_agent="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Brave Chrome/91.0.4472.164 Safari/537.36")
117
+ except Exception as e:
118
+ errors.append({"Error in": "user agent", "Error": e})
119
+
120
121
""" Testing jokeapi.submit_joke() """
122
try:
0 commit comments