File tree Expand file tree Collapse file tree 3 files changed +19
-13
lines changed
Expand file tree Collapse file tree 3 files changed +19
-13
lines changed Original file line number Diff line number Diff line change 1+ #!/usr/bin/env python3
2+
3+ import os
4+ from main import Lighthouse
5+
6+
7+ def test_deploy ():
8+ """test deploy function"""
9+ l = Lighthouse (os .environ ["LH_TOKEN" ])
10+ assert l .deploy ("tests/testfile.txt" ) == {"data" : {}}
Original file line number Diff line number Diff line change 11#!/usr/bin/env python3
22
33import os
4- from main import Lighthouse
5-
6-
7- def run_test ():
8- """setup test environment and run tests"""
9- parse_env ()
10- test_deploy ()
11-
12-
13- def test_deploy ():
14- """test deploy function"""
15- l = Lighthouse (os .environ ["LH_TOKEN" ])
16- assert l .deploy ("tests/upload_test.txt" ) == {"data" : {}}
4+ from . import deploy as dt
175
186
197def parse_env ():
@@ -26,5 +14,11 @@ def parse_env():
2614 os .environ [key ] = value .strip ()
2715
2816
17+ def run_test ():
18+ """setup test environment and run tests"""
19+ parse_env ()
20+ dt .test_deploy ()
21+
22+
2923if __name__ == "__main__" :
3024 run_test ()
Original file line number Diff line number Diff line change 1+ This is a text file.
2+ This is for testing file upload
You can’t perform that action at this time.
0 commit comments