Skip to content

Commit ddb4157

Browse files
authored
Update test_custom_exceptions.py
1 parent 09e9bf9 commit ddb4157

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

python_test/test_custom_exceptions.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from fastapi import FastAPI
22
from fastapi.testclient import TestClient
3+
import pytest
34
from gs.backend.exceptions.exception_handlers import setup_exception_handlers
45
from gs.backend.exceptions.exceptions import (
56
BaseOrbitalError,
@@ -82,4 +83,4 @@ def test_custom_exceptions(endpoint, status_code, response_key, expected_message
8283
fastapi_test_client = create_exception_handler_client()
8384
response = fastapi_test_client.get(endpoint)
8485
assert response.status_code == status_code
85-
assert response.json().get(response_key) == expected_message
86+
assert response.json().get(response_key) == expected_message

0 commit comments

Comments
 (0)