From 8ba1e90f9ab7876a0d5ef9f323ccba46ce5c37dd Mon Sep 17 00:00:00 2001 From: Sartography Date: Mon, 7 Dec 2020 08:39:00 -0500 Subject: [PATCH] Test for ticket 153 to include user in error messages --- tests/test_user_in_logs.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 tests/test_user_in_logs.py diff --git a/tests/test_user_in_logs.py b/tests/test_user_in_logs.py new file mode 100644 index 00000000..1ebb9b79 --- /dev/null +++ b/tests/test_user_in_logs.py @@ -0,0 +1,21 @@ +from crc.api.common import ApiError +from tests.base_test import BaseTest + + +class TestUserID(BaseTest): + + def test_user_id(self): + # try: + # False + # except: + # raise ApiError + + # ApiError() + # self.assertEqual(True,False) + + # with self.assertRaises(ApiError) as api_error: + # self.assertEqual(2, 3) + workflow = self.create_workflow('email') + first_task = self.get_workflow_api(workflow).next_task + + raise ApiError('unknown_approval', 'Please provide a valid Approval ID.')