1010sys .path [:0 ] = [os .path .join (libpath , os .pardir , 'lib' )]
1111import pan .wfapi
1212
13+ URL = 'https://www.google.com'
14+
1315
1416class PanWFapiTest (wfapi_mixin .Mixin , unittest .TestCase ):
1517 def test_01 (self ):
@@ -33,7 +35,7 @@ def test_04(self):
3335 'download_files,screenshot' ,
3436 'download_files, screenshot' ,
3537 ]:
36- self .api .web_artifacts (url = '0.0.0.0' , types = types )
38+ self .api .web_artifacts (url = URL , types = types )
3739 self .assertEqual (self .api .http_code , 200 )
3840 self .assertIsNotNone (self .api .attachment )
3941
@@ -44,7 +46,7 @@ def test_04(self):
4446 self .assertIn ('download_files' , files )
4547
4648 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' )
4850 self .assertEqual (self .api .http_code , 200 )
4951 self .assertIsNotNone (self .api .attachment )
5052
@@ -55,7 +57,7 @@ def test_05(self):
5557 self .assertNotIn ('download_files' , files )
5658
5759 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' )
5961 self .assertEqual (self .api .http_code , 200 )
6062 self .assertIsNotNone (self .api .attachment )
6163
0 commit comments