File tree 3 files changed +8
-3
lines changed
3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -159,6 +159,4 @@ cython_debug/
159
159
# and can be added to the global gitignore or merged into this file. For a more nuclear
160
160
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
161
161
# .idea/
162
- src /lighthouseweb3 /functions /download.py
163
-
164
162
image.png
Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ def test_download_file(self):
32
32
"Qmd5MBBScDUV3Ly8qahXtZFqyRRfYSmUwEcxpYcV4hzKfW" )
33
33
self .assertIsInstance (res , bytes , "type doesn't match" )
34
34
self .assertEqual (res , b'tests/testdir/' , "data doesn't match" )
35
+ self .assertEqual (res .decode ('utf-8' ), 'tests/testdir/' )
35
36
36
37
def test_download_blob_file (self ):
37
38
"""test download_blob function"""
@@ -43,6 +44,5 @@ def test_download_blob_file(self):
43
44
123939 , "File Size dont match" )
44
45
45
46
46
-
47
47
if __name__ == "__main__" :
48
48
unittest .main ()
Original file line number Diff line number Diff line change @@ -86,6 +86,13 @@ def test_upload_with_tag(self):
86
86
self .assertEqual (res .get ("data" ).get ("Hash" ), tagData .get (
87
87
"data" ).get ("cid" ), "Tag dont match" )
88
88
89
+ def test_tag_notFound (self ):
90
+ """test Upload with tag function"""
91
+ l = Lighthouse (os .environ .get ("LIGHTHOUSE_TOKEN" ))
92
+ tag = generate_random_string (9 )
93
+ tagData = l .getTagged (tag )
94
+ self .assertEqual (None , tagData .get ("data" ), "Tag dont match" )
95
+
89
96
90
97
if __name__ == "__main__" :
91
98
unittest .main ()
You can’t perform that action at this time.
0 commit comments