excellent results
Some checks failed
Build and deploy the backend to staging / Build and push image (pull_request) Successful in 2m22s
Run linting on the backend code / Build (pull_request) Successful in 49s
Build and deploy the backend to staging / Deploy to staging (pull_request) Successful in 23s
Run testing on the backend code / Build (pull_request) Failing after 5m48s
Some checks failed
Build and deploy the backend to staging / Build and push image (pull_request) Successful in 2m22s
Run linting on the backend code / Build (pull_request) Successful in 49s
Build and deploy the backend to staging / Deploy to staging (pull_request) Successful in 23s
Run testing on the backend code / Build (pull_request) Failing after 5m48s
This commit is contained in:
parent
f67e2b5dd6
commit
f863c41653
File diff suppressed because one or more lines are too long
@ -55,7 +55,7 @@ def test_turckheim(client, request): # pylint: disable=redefined-outer-name
|
|||||||
assert comp_time < 30, f"Computation time exceeded 30 seconds: {comp_time:.2f} seconds"
|
assert comp_time < 30, f"Computation time exceeded 30 seconds: {comp_time:.2f} seconds"
|
||||||
# assert 2==3
|
# assert 2==3
|
||||||
|
|
||||||
'''
|
|
||||||
def test_bellecour(client, request) : # pylint: disable=redefined-outer-name
|
def test_bellecour(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°2 : Custom test in Lyon centre to ensure proper decision making in crowded area.
|
||||||
@ -335,23 +335,4 @@ def test_shopping(client, request) : # pylint: disable=redefined-outer-name
|
|||||||
# checks :
|
# checks :
|
||||||
assert response.status_code == 200 # check for successful planning
|
assert response.status_code == 200 # check for successful planning
|
||||||
assert comp_time < 30, f"Computation time exceeded 30 seconds: {comp_time:.2f} seconds"
|
assert comp_time < 30, f"Computation time exceeded 30 seconds: {comp_time:.2f} seconds"
|
||||||
assert duration_minutes*0.8 < int(result['total_time']) < duration_minutes*1.2
|
assert duration_minutes*0.8 < int(result['total_time']) < duration_minutes*1.2
|
||||||
|
|
||||||
'''
|
|
||||||
# def test_new_trip_single_prefs(client):
|
|
||||||
# response = client.post(
|
|
||||||
# "/trip/new",
|
|
||||||
# json={
|
|
||||||
# "preferences": {"sightseeing": {"type": "sightseeing", "score": 1},
|
|
||||||
# "nature": {"type": "nature", "score": 1},
|
|
||||||
# "shopping": {"type": "shopping", "score": 1},
|
|
||||||
# "max_time_minute": 360,
|
|
||||||
# "detour_tolerance_minute": 0},
|
|
||||||
# "start": [48.8566, 2.3522]
|
|
||||||
# }
|
|
||||||
# )
|
|
||||||
# assert response.status_code == 200
|
|
||||||
|
|
||||||
|
|
||||||
# def test_new_trip_matches_prefs(client):
|
|
||||||
# pass
|
|
Loading…
x
Reference in New Issue
Block a user