Skip to content

Commit

Permalink
Don't assert against content of python error
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtylerwalls committed Dec 18, 2021
1 parent 75412a1 commit d18defe
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):
def test_questioner_no_default_bad_user_entry_code(self, mock):
with self.assertRaises(SystemExit), captured_stdout() as stdout:
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):
Expand Down

0 comments on commit d18defe

Please sign in to comment.