@@ -18,8 +18,7 @@ def setUpClass(cls):
18
18
patch ('sys.argv' , ['froster' , 'config' ]), \
19
19
patch ('inquirer.text' , side_effect = [NAME_1 , EMAIL_1 , PROFILE_1 , AWS_CREDENTIALS_PROFILE_1 , AWS_ACCESS_KEY_ID , AWS_SECRET , S3_BUCKET_NAME_CREDENTIALS_1 , S3_ARCHIVE_DIR_1 ]), \
20
20
patch ('inquirer.confirm' , side_effect = [False , False , True , False ]), \
21
- patch ('inquirer.list_input' , side_effect = ['+ Create new profile' , PROVIDER_1 , '+ Create new credentials' , AWS_REGION_1 , '+ Create new bucket' , S3_STORAGE_CLASS_1 ]), \
22
- patch ('builtins.print' ) as mock_print :
21
+ patch ('inquirer.list_input' , side_effect = ['+ Create new profile' , PROVIDER_1 , '+ Create new credentials' , AWS_REGION_1 , '+ Create new bucket' , S3_STORAGE_CLASS_1 ]):
23
22
main ()
24
23
25
24
# Method executed once after all tests
@@ -44,8 +43,7 @@ def test_subcmd_credentials(self):
44
43
45
44
# Run the index command and check if sys.exit(0), which means no issues detected while executing the command
46
45
with \
47
- patch ('sys.argv' , ['froster' , 'credentials' ]), \
48
- patch ('builtins.print' ) as mock_print :
46
+ patch ('sys.argv' , ['froster' , 'credentials' ]):
49
47
self .assertFalse (main ())
50
48
51
49
0 commit comments