Skip to content

MockResponse has to be refactored #161

@foursixnine

Description

@foursixnine

There is some repeated code that is very tightly coupled to its module:

tests/test_incident.py # being added by #154 
133:    class MockResponse:
141:        return MockResponse(

tests/test_incidents.py 
109:    class MockResponse:
116:        return MockResponse()

tests/test_aggregate.py
52:    class MockResponse:
59:        return MockResponse()

That can be extracted into its own utility, so the caller can specify what's the expected output in a more generic way

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions