Skip to content

Commit

Permalink
Removed a Python error message dependency in test_questioner_no_defau…
Browse files Browse the repository at this point in the history
…lt_bad_user_entry_code().
  • Loading branch information
jacobtylerwalls authored and felixxm committed Dec 20, 2021
1 parent 1833a9e commit 03cadb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/migrations/test_questioner.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def test_questioner_no_default_no_user_entry(self, mock_input):
def test_questioner_no_default_bad_user_entry_code(self, mock_input):
with captured_stdout() as stdout, self.assertRaises(SystemExit):
self.questioner._ask_default()
self.assertIn('Invalid input: unexpected EOF while parsing', stdout.getvalue())
self.assertIn('Invalid input: ', stdout.getvalue())

@mock.patch('builtins.input', side_effect=['', 'n'])
def test_questioner_no_default_no_user_entry_boolean(self, mock_input):
Expand Down

0 comments on commit 03cadb9

Please sign in to comment.