cr-connect-workflow/crc/services/failing_service.py
mike cullerton 7defc2b02f Tests for uid in logs. Currently we test for uid in a response. This covers ApiError.
Currently, we don't have a test for Sentry. Unsure how to do this.
Also added a script, service and test workflow to help. (Also to learn about adding a script and service.)
2020-12-11 17:47:53 -05:00

12 lines
242 B
Python

from crc.api.common import ApiError
class FailingService(object):
@staticmethod
def fail_as_service():
"""It fails"""
raise ApiError(code='bad_service',
message='This is my failing service')