higher importance for historic clusters and first time no failed test
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				Build and deploy the backend to staging / Build and push image (pull_request) Successful in 2m52s
				
			
		
			
				
	
				Run linting on the backend code / Build (pull_request) Successful in 29s
				
			
		
			
				
	
				Run testing on the backend code / Build (pull_request) Successful in 2m7s
				
			
		
			
				
	
				Build and release debug APK / Build APK (pull_request) Successful in 7m28s
				
			
		
			
				
	
				Build and deploy the backend to staging / Deploy to staging (pull_request) Successful in 17s
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	Build and deploy the backend to staging / Build and push image (pull_request) Successful in 2m52s
				
			Run linting on the backend code / Build (pull_request) Successful in 29s
				
			Run testing on the backend code / Build (pull_request) Successful in 2m7s
				
			Build and release debug APK / Build APK (pull_request) Successful in 7m28s
				
			Build and deploy the backend to staging / Deploy to staging (pull_request) Successful in 17s
				
			This commit is contained in:
		| @@ -74,12 +74,13 @@ def test_bellecour(client, request) :   # pylint: disable=redefined-outer-name | |||||||
|  |  | ||||||
|     for elem in landmarks : |     for elem in landmarks : | ||||||
|         print(elem) |         print(elem) | ||||||
|  |         print(elem.osm_id) | ||||||
|  |  | ||||||
|     # checks : |     # checks : | ||||||
|     assert response.status_code == 200  # check for successful planning |     assert response.status_code == 200  # check for successful planning | ||||||
|     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 | ||||||
|     assert 136200148 in osm_ids         # check for Cathédrale St. Jean in trip |     assert 136200148 in osm_ids         # check for Cathédrale St. Jean in trip | ||||||
|     assert response.status_code == 2000  # check for successful planning |     # assert response.status_code == 2000  # check for successful planning | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
| @@ -91,7 +92,7 @@ def test_shopping(client, request) :   # pylint: disable=redefined-outer-name | |||||||
|         client: |         client: | ||||||
|         request: |         request: | ||||||
|     """ |     """ | ||||||
|     duration_minutes = 1000 |     duration_minutes = 240 | ||||||
|     response = client.post( |     response = client.post( | ||||||
|         "/trip/new", |         "/trip/new", | ||||||
|         json={ |         json={ | ||||||
|   | |||||||
| @@ -154,7 +154,7 @@ class ClusterManager: | |||||||
|             if self.cluster_type == 'shopping' : |             if self.cluster_type == 'shopping' : | ||||||
|                 score = len(current_cluster)*2 |                 score = len(current_cluster)*2 | ||||||
|             else : |             else : | ||||||
|                 score = len(current_cluster)*4 |                 score = len(current_cluster)*8 | ||||||
|             locations.append(Cluster( |             locations.append(Cluster( | ||||||
|                 type='area', |                 type='area', | ||||||
|                 centroid=centroid, |                 centroid=centroid, | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user