Esempio n. 1
0
 def test_show_prompt_if_user_said_yes(self):
     test_args = Namespace(**vars(args_to_mock))
     test_args.prompt = True
     assert Session._allow_prompt(test_args) is True, test_args
Esempio n. 2
0
 def test_dont_show_prompt_if_user_said_no(self):
     test_args = Namespace(**vars(args_to_mock))
     test_args.no_prompt = True
     assert Session._allow_prompt(test_args) is False, test_args
Esempio n. 3
0
 def test_show_prompt_if_user_didnt_say(self):
     test_args = Namespace(**vars(args_to_mock))
     assert Session._allow_prompt(test_args) is True, test_args