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 9a57f81 commit 08b65c5Copy full SHA for 08b65c5
tests/test_get_uploads.py
@@ -23,4 +23,12 @@ def test_get_upload_with_last_key(self):
23
l = Lighthouse(os.environ.get("LIGHTHOUSE_TOKEN"))
24
res = l.getUploads('b5f60ba0-b708-41a3-b0f2-5c808ce63b48')
25
self.assertIsInstance(res.get("fileList"), list, "data is a list")
26
- self.assertIsInstance(res.get('totalFiles'), int, "totalFiles is an int")
+ self.assertIsInstance(res.get('totalFiles'), int, "totalFiles is an int")
27
+
28
+ def test_get_upload_with_invalid_token(self):
29
+ """test get_upload function with invalid token"""
30
+ parse_env()
31
+ l = Lighthouse("invalid_token")
32
+ with self.assertRaises(Exception) as context:
33
+ l.getUploads()
34
+ self.assertIn("authentication failed", str(context.exception).lower())
0 commit comments