File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -1732,15 +1732,22 @@ def test_unknown_flag(self, _):
17321732 self .assertStartsWith (output , 'usage: ' )
17331733
17341734
1735- class CommandLineRunTimeTestCase (CommandLineTestCase ):
1735+ class CommandLineRunTimeTestCase (unittest . TestCase ):
17361736 random_data = os .urandom (1024 )
17371737 random_file_name = 'random.bin'
1738+ tls_cert = certdata_file ('ssl_cert.pem' )
1739+ tls_key = certdata_file ('ssl_key.pem' )
1740+ tls_password = 'somepass'
17381741
17391742 def setUp (self ):
17401743 super ().setUp ()
17411744 with open (self .random_file_name , 'wb' ) as f :
17421745 f .write (self .random_data )
17431746 self .addCleanup (os_helper .unlink , self .random_file_name )
1747+ self .tls_password_file = tempfile .mktemp ()
1748+ with open (self .tls_password_file , 'wb' ) as f :
1749+ f .write (self .tls_password .encode ())
1750+ self .addCleanup (os_helper .unlink , self .tls_password_file )
17441751
17451752 def fetch_file (self , path , allow_self_signed_cert = True ) -> bytes :
17461753 context = ssl .create_default_context ()
You can’t perform that action at this time.
0 commit comments