10
10
sys .path [:0 ] = [os .path .join (libpath , os .pardir , 'lib' )]
11
11
import pan .wfapi
12
12
13
+ URL = 'https://www.google.com'
14
+
13
15
14
16
class PanWFapiTest (wfapi_mixin .Mixin , unittest .TestCase ):
15
17
def test_01 (self ):
@@ -33,7 +35,7 @@ def test_04(self):
33
35
'download_files,screenshot' ,
34
36
'download_files, screenshot' ,
35
37
]:
36
- self .api .web_artifacts (url = '0.0.0.0' , types = types )
38
+ self .api .web_artifacts (url = URL , types = types )
37
39
self .assertEqual (self .api .http_code , 200 )
38
40
self .assertIsNotNone (self .api .attachment )
39
41
@@ -44,7 +46,7 @@ def test_04(self):
44
46
self .assertIn ('download_files' , files )
45
47
46
48
def test_05 (self ):
47
- self .api .web_artifacts (url = '0.0.0.0' , types = 'screenshot' )
49
+ self .api .web_artifacts (url = URL , types = 'screenshot' )
48
50
self .assertEqual (self .api .http_code , 200 )
49
51
self .assertIsNotNone (self .api .attachment )
50
52
@@ -55,7 +57,7 @@ def test_05(self):
55
57
self .assertNotIn ('download_files' , files )
56
58
57
59
def test_06 (self ):
58
- self .api .web_artifacts (url = '0.0.0.0' , types = 'download_files' )
60
+ self .api .web_artifacts (url = URL , types = 'download_files' )
59
61
self .assertEqual (self .api .http_code , 200 )
60
62
self .assertIsNotNone (self .api .attachment )
61
63
0 commit comments