mirror of
https://github.com/Sea-Haven-Industries/meal-order-manager.git
synced 2026-10-06 04:12:00 +00:00
style(meals): apply ruff format (PLAT-134)
This commit is contained in:
parent
cade872226
commit
216860b82c
2 changed files with 4 additions and 4 deletions
|
|
@ -6,7 +6,9 @@ from shared.flex_join import JoinReport, JoinRow, join_orders_to_workers
|
||||||
|
|
||||||
|
|
||||||
def test_business_email_match():
|
def test_business_email_match():
|
||||||
orders = [{"employee_email": "pat@seahaven.com", "employee_name": "Pat", "total": 12}]
|
orders = [
|
||||||
|
{"employee_email": "pat@seahaven.com", "employee_name": "Pat", "total": 12}
|
||||||
|
]
|
||||||
workers = [
|
workers = [
|
||||||
{
|
{
|
||||||
"workerId": "W1",
|
"workerId": "W1",
|
||||||
|
|
|
||||||
|
|
@ -69,9 +69,7 @@ def test_get_menu_when_falls_back_to_iso():
|
||||||
def test_get_menu_when_prefers_u_week_if_both_exist():
|
def test_get_menu_when_prefers_u_week_if_both_exist():
|
||||||
u_item = {"PK": "WEEK#2026-W00", "SK": "MENU", "source": "u"}
|
u_item = {"PK": "WEEK#2026-W00", "SK": "MENU", "source": "u"}
|
||||||
iso_item = {"PK": "WEEK#2026-W01", "SK": "MENU", "source": "iso"}
|
iso_item = {"PK": "WEEK#2026-W01", "SK": "MENU", "source": "iso"}
|
||||||
table = _table_with_get_items(
|
table = _table_with_get_items({"WEEK#2026-W00": u_item, "WEEK#2026-W01": iso_item})
|
||||||
{"WEEK#2026-W00": u_item, "WEEK#2026-W01": iso_item}
|
|
||||||
)
|
|
||||||
|
|
||||||
with patch.object(db, "_get_table", return_value=table):
|
with patch.object(db, "_get_table", return_value=table):
|
||||||
result = db.get_menu("2026-W00", when=MISMATCH_DT)
|
result = db.get_menu("2026-W00", when=MISMATCH_DT)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue