Skip to content

Commit

Permalink
Update test_main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
NetZach777 authored Dec 17, 2023
1 parent d8dade0 commit d2cf952
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def test_predict_sentiment_empty_text():

# Teste la gestion de caractères non-ASCII
def test_predict_sentiment_non_ascii():
response = client.post(API_ENDPOINT, json={"text": "J'adore FastAPI et les crêpes !"})
response = client.post(API_ENDPOINT, json={"text": "I like FastAPI et the crêpes !"})
assert response.status_code == 200
assert "sentiment" in response.json()

Expand All @@ -40,4 +40,4 @@ def test_predict_sentiment_wrong_content_type():
# Teste que les méthodes GET ne sont pas autorisées
def test_predict_sentiment_get_method_not_allowed():
response = client.get(API_ENDPOINT)
assert response.status_code == 405
assert response.status_code == 405

0 comments on commit d2cf952

Please sign in to comment.