Group filament variants and add spool consumption workflow
This commit is contained in:
1 parent
40d6843147
commit
ddd31b2626
16 files changed
+363
-65
No files matched your search
+9
-14
@@ -26,33 +26,28 @@ class RealHTTPTests(unittest.TestCase):
|
||||
html = self.alice.post(
|
||||
"/bestand/hinzufuegen/", {"manufacturer": manufacturer, "action": "filter"}
|
||||
)[1]
|
||||
material = re.search(
|
||||
r'<select name="material".*?<option value="([^"]+)"', html, re.S
|
||||
).group(1)
|
||||
filters = {"manufacturer": manufacturer, "material": material}
|
||||
html = self.alice.post("/bestand/hinzufuegen/", filters | {"action": "filter"})[1]
|
||||
product = re.search(
|
||||
r'<select name="product_type".*?<option value="(\d+)"', html, re.S
|
||||
).group(1)
|
||||
filters["product_type"] = product
|
||||
html = self.alice.post(
|
||||
"/bestand/hinzufuegen/",
|
||||
{"manufacturer": manufacturer, "product_type": product, "action": "filter"},
|
||||
filters | {"action": "filter"},
|
||||
)[1]
|
||||
color = re.search(r'<select name="color".*?<option value="(\d+)"', html, re.S).group(1)
|
||||
html = self.alice.post(
|
||||
"/bestand/hinzufuegen/",
|
||||
{
|
||||
"manufacturer": manufacturer,
|
||||
"product_type": product,
|
||||
"color": color,
|
||||
"action": "filter",
|
||||
},
|
||||
filters | {"color": color, "action": "filter"},
|
||||
)[1]
|
||||
spool = re.search(r'<select name="spool_type".*?<option value="([^"]+)"', html, re.S).group(
|
||||
1
|
||||
)
|
||||
return {
|
||||
"manufacturer": manufacturer,
|
||||
"product_type": product,
|
||||
"color": color,
|
||||
"spool_type": spool,
|
||||
"quantity": quantity,
|
||||
}
|
||||
return filters | {"color": color, "spool_type": spool, "quantity": quantity}
|
||||
|
||||
def test_two_accounts_privacy_shared_totals_static_and_server_restart(self):
|
||||
payload = self.selection(2)
|
||||
|
||||
Reference in new issue
Block a user