Skip to content

Commit

Permalink
Test Attribute Error
Browse files Browse the repository at this point in the history
  • Loading branch information
vsbharath authored Aug 23, 2024
1 parent 82f4f98 commit e58da97
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cumulusci/cli/tests/test_error.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ def test_gist__creation_error(self, gh_api, create_gist, date, sys, platform):

class ExceptionWithResponse(Exception, mock.Mock):
def __init__(self, status_code):
super().__init__()
self.response = mock.Mock(status_code=status_code)

create_gist.side_effect = ExceptionWithResponse(503)
Expand Down

0 comments on commit e58da97

Please sign in to comment.