Skip to content

Commit

Permalink
Updated gecko driver, running more tests on json
Browse files Browse the repository at this point in the history
  • Loading branch information
ssspe committed Sep 16, 2018
1 parent b4e6cac commit 67853a1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
Binary file modified geckodriver.exe
Binary file not shown.
1 change: 1 addition & 0 deletions src/dominos_orderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ def process_pizza_json(webdriver):
pizza_index = [pizza.text for pizza in pizzas]

if pizza['name'] in pizza_index:
logging.info(f"Customizing pizza {pizza['name']}!")
customise_pizza(webdriver, pizza_index, pizza, "Choose")

if first_half:
Expand Down
4 changes: 3 additions & 1 deletion src/pizza.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
{"name": "Hawaiian", "type": "half", "customise": 1, "customisation": {"extra": ["Sweetcorn"], "remove": ["Pineapple"], "crust": "Italian Style"}},
{"name": "Hawaiian", "type": "full", "customise": 1, "customisation": {"extra": ["Sweetcorn", "Jalapeno Peppers"], "remove": [""], "crust": "Stuffed Crust®"}},
{"name": "Mighty Meaty®", "type": "half", "customise": 1, "customisation": {"extra": ["Smoked Bacon Rashers", "Smoked Bacon Rashers"], "remove": ["Cumberland Sausage"], "crust": ""}},
{"name": "Mighty Meaty®", "type": "half", "customise": 0, "customisation": {"extra": ["Sweetcorn", "Jalapeno Peppers"], "remove": [""], "crust": ""}}
{"name": "Mighty Meaty®", "type": "half", "customise": 0, "customisation": {"extra": [""], "remove": [""], "crust": ""}},
{"name": "Vegi Supreme", "type": "half", "customise": 1, "customisation": {"extra": ["Smoked Bacon Rashers"], "remove": ["Red Onions", "Mushrooms"], "crust": ""}},
{"name": "Ranch BBQ", "type": "half", "customise": 0, "customisation": {"extra": [""], "remove": [""], "crust": ""}}
]
}

0 comments on commit 67853a1

Please sign in to comment.