diff --git a/auth-domain/user-manager/src/tests/functional/test_auth.py b/auth-domain/user-manager/src/tests/functional/test_auth.py index 2a0f76b..5176cfd 100644 --- a/auth-domain/user-manager/src/tests/functional/test_auth.py +++ b/auth-domain/user-manager/src/tests/functional/test_auth.py @@ -31,7 +31,7 @@ def test_not_registered_user_login(test_app, test_database): data = json.loads(resp.data.decode()) assert resp.status_code == 404 assert resp.content_type == "application/json" - assert "User does not exist." in data["message"] + assert "User does not exist" in data["message"] def test_valid_refresh(test_app, test_database, add_user): diff --git a/flights-domain/flights-information/src/tests/functional/flights_functional_test.py b/flights-domain/flights-information/src/tests/functional/flights_functional_test.py index 6e8e3e9..c015ccc 100644 --- a/flights-domain/flights-information/src/tests/functional/flights_functional_test.py +++ b/flights-domain/flights-information/src/tests/functional/flights_functional_test.py @@ -1,5 +1,4 @@ import json -from datetime import datetime from fastapi import BackgroundTasks from fastapi.testclient import TestClient @@ -12,11 +11,11 @@ client = TestClient(app) creating_flight = { "flight_code": "ABC123", - "status": "pending", + "status": "Scheduled", "origin": "SLA", "destination": "AEP", - "departure_time": datetime(2023, 10, 23, 12, 0, 0).isoformat(), - "arrival_time": datetime(2023, 10, 24, 12, 0, 0).isoformat(), + "departure_time": "2023-10-23 12:00 AM", + "arrival_time": "2023-10-24 12:00 AM", "gate": "10", "user_id": 1, } @@ -45,12 +44,12 @@ def test_patch_flight(test_database, create_flight, flight_to_create, monkeypatc created_flight = create_flight(flight_to_create) api_call_retrieved_flight = client.patch( f"/flights/{created_flight.id}", - data=json.dumps({"status": "on-boarding", "user_id": 1}), + data=json.dumps({"status": "Delayed", "user_id": 1}), ) assert api_call_retrieved_flight.status_code == 200 api_call_retrieved_flight_data = api_call_retrieved_flight.json() assert api_call_retrieved_flight_data["id"] == created_flight.id - assert api_call_retrieved_flight_data["status"] == "on-boarding" + assert api_call_retrieved_flight_data["status"] == "Delayed" def test_all_flights(create_flights_on_database): diff --git a/flights-domain/flights-information/src/tests/unit/flights_unit_test.py b/flights-domain/flights-information/src/tests/unit/flights_unit_test.py index 05cff7b..bfee6a3 100644 --- a/flights-domain/flights-information/src/tests/unit/flights_unit_test.py +++ b/flights-domain/flights-information/src/tests/unit/flights_unit_test.py @@ -7,7 +7,7 @@ client = TestClient(app) mocked_flight = { "id": 1, "flight_code": "ABC125", - "status": "En ruta", + "status": "Scheduled", "origin": "Ciudad B", "destination": "Ciudad A", "departure_time": "2023-10-10 10:00 AM",