mirror of
				https://github.com/ae-utbm/sith.git
				synced 2025-10-31 00:53:08 +00:00 
			
		
		
		
	Black update
This commit is contained in:
		| @@ -74,22 +74,20 @@ class CounterTest(TestCase): | ||||
|             }, | ||||
|         ) | ||||
|         response = self.client.post(location, {"action": "code", "code": "BARB"}) | ||||
|         response = self.client.post(location, {"action": "add_product", "product_id": "4"}) | ||||
|         response = self.client.post(location, {"action": "del_product", "product_id": "4"}) | ||||
|         response = self.client.post( | ||||
|             location, {"action": "add_product", "product_id": "4"} | ||||
|         ) | ||||
|         response = self.client.post( | ||||
|             location, {"action": "del_product", "product_id": "4"} | ||||
|         ) | ||||
|         response = self.client.post(location, {"action": "code", "code": "2xdeco"}) | ||||
|         response = self.client.post(location, {"action": "code", "code": "1xbarb"}) | ||||
|         response = self.client.post(location, {"action": "code", "code": "fin"}) | ||||
|  | ||||
|         response_get = self.client.get(response.get("location")) | ||||
|         response_content = response_get.content.decode("utf-8") | ||||
|         self.assertTrue( | ||||
|             "<li>2 x Barbar" | ||||
|             in str(response_content) | ||||
|         ) | ||||
|         self.assertTrue( | ||||
|             "<li>2 x Déconsigne Eco-cup" | ||||
|             in str(response_content) | ||||
|         ) | ||||
|         self.assertTrue("<li>2 x Barbar" in str(response_content)) | ||||
|         self.assertTrue("<li>2 x Déconsigne Eco-cup" in str(response_content)) | ||||
|         self.assertTrue( | ||||
|             "<p>Client : Richard Batsbak - Nouveau montant : 3.60" | ||||
|             in str(response_content) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user