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