Skip to content

Commit

Permalink
Cleaned up tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JBWilkie committed Oct 27, 2023
1 parent 18f688b commit ccc02ba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions darwin/future/tests/core/items/test_archive_items.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def test_archive_items_including_filters(base_client: ClientCore) -> None:
responses.add(
responses.POST,
base_client.config.api_endpoint + "v2/teams/test-team/items/archive",
json={"affected_item_count": 0},
json={"affected_item_count": 2},
)

# Call the function
Expand All @@ -35,10 +35,10 @@ def test_archive_items_including_filters(base_client: ClientCore) -> None:
)

# Check that the response mathces what we expect
assert response == {"affected_item_count": 0}
assert response == {"affected_item_count": 2}


def test_archive_items_with_error_response(base_client: ClientCore) -> None:
def test_archive_items_with_error_response() -> None:
api_client = Mock(spec=ClientCore)
api_client.post.side_effect = DarwinException("Something went wrong")

Expand Down

0 comments on commit ccc02ba

Please sign in to comment.