mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-24 10:04:34 +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": "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)
|
||||
|
Loading…
Reference in New Issue
Block a user