Skip to content

Commit

Permalink
Trial fixes for e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
Pasarus committed Dec 18, 2024
1 parent 8e609e7 commit 5134fc1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/e2e/test_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
client = TestClient(app)


@patch("fia_auth.auth.requests.post")
def test_successful_login(mock_post):
@patch("fia_auth.auth.requests")
def test_successful_login(mock_requests):
mock_response = Mock()
mock_post.return_value = mock_response
mock_requests.post.return_value = mock_response

mock_response.status_code = HTTPStatus.CREATED
mock_response.json.return_value = {"userId": 1234}
Expand Down

0 comments on commit 5134fc1

Please sign in to comment.