cache later
Some checks failed
Build and deploy the backend to staging / Build and push image (pull_request) Successful in 1m37s
Run linting on the backend code / Build (pull_request) Successful in 28s
Run testing on the backend code / Build (pull_request) Failing after 3m29s
Build and deploy the backend to staging / Deploy to staging (pull_request) Successful in 23s

This commit is contained in:
2025-01-27 18:29:50 +01:00
parent a3243431e0
commit d6f723bee1
7 changed files with 132 additions and 114 deletions

View File

@@ -27,8 +27,8 @@ def test_turckheim(client, request): # pylint: disable=redefined-outer-name
"/trip/new",
json={
"preferences": {"sightseeing": {"type": "sightseeing", "score": 5},
"nature": {"type": "nature", "score": 0},
"shopping": {"type": "shopping", "score": 0},
"nature": {"type": "nature", "score": 5},
"shopping": {"type": "shopping", "score": 5},
"max_time_minute": duration_minutes,
"detour_tolerance_minute": 0},
"start": [48.084588, 7.280405]
@@ -100,7 +100,7 @@ def test_bellecour(client, request) : # pylint: disable=redefined-outer-name
def test_cologne(client, request) : # pylint: disable=redefined-outer-name
"""
Test n°2 : Custom test in Lyon centre to ensure proper decision making in crowded area.
Test n°3 : Custom test in Cologne to ensure proper decision making in crowded area.
Args:
client:
@@ -141,7 +141,7 @@ def test_cologne(client, request) : # pylint: disable=redefined-outer-name
def test_strasbourg(client, request) : # pylint: disable=redefined-outer-name
"""
Test n°2 : Custom test in Lyon centre to ensure proper decision making in crowded area.
Test n°4 : Custom test in Strasbourg to ensure proper decision making in crowded area.
Args:
client:
@@ -182,7 +182,7 @@ def test_strasbourg(client, request) : # pylint: disable=redefined-outer-name
def test_zurich(client, request) : # pylint: disable=redefined-outer-name
"""
Test n°2 : Custom test in Lyon centre to ensure proper decision making in crowded area.
Test n°5 : Custom test in Zurich to ensure proper decision making in crowded area.
Args:
client:
@@ -223,24 +223,24 @@ def test_zurich(client, request) : # pylint: disable=redefined-outer-name
def test_paris(client, request) : # pylint: disable=redefined-outer-name
"""
Test n°2 : Custom test in Paris (les Halles) centre to ensure proper decision making in crowded area.
Test n°6 : Custom test in Paris (les Halles) centre to ensure proper decision making in crowded area.
Args:
client:
request:
"""
start_time = time.time() # Start timer
duration_minutes = 300
duration_minutes = 200
response = client.post(
"/trip/new",
json={
"preferences": {"sightseeing": {"type": "sightseeing", "score": 5},
"nature": {"type": "nature", "score": 5},
"nature": {"type": "nature", "score": 0},
"shopping": {"type": "shopping", "score": 5},
"max_time_minute": duration_minutes,
"detour_tolerance_minute": 0},
"start": [48.86248803298562, 2.346451131285925]
"start": [48.85468881798671, 2.3423925755998374]
}
)
result = response.json()
@@ -264,7 +264,7 @@ def test_paris(client, request) : # pylint: disable=redefined-outer-name
def test_new_york(client, request) : # pylint: disable=redefined-outer-name
"""
Test n°2 : Custom test in New York (les Halles) centre to ensure proper decision making in crowded area.
Test n°7 : Custom test in New York to ensure proper decision making in crowded area.
Args:
client:
@@ -305,7 +305,7 @@ def test_new_york(client, request) : # pylint: disable=redefined-outer-name
def test_shopping(client, request) : # pylint: disable=redefined-outer-name
"""
Test n°3 : Custom test in Lyon centre to ensure shopping clusters are found.
Test n°8 : Custom test in Lyon centre to ensure shopping clusters are found.
Args:
client: