mirror of
https://github.com/Sea-Haven-Industries/meal-order-manager.git
synced 2026-10-07 16:18:54 +00:00
test(form): stub admin lookup in browser tests
This commit is contained in:
parent
91286fc922
commit
5ba3f00157
1 changed files with 8 additions and 0 deletions
|
|
@ -101,6 +101,14 @@ def _mock_form_routes(page):
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
page.route(
|
||||||
|
"**/api/admin/orders",
|
||||||
|
lambda route: route.fulfill(
|
||||||
|
status=403,
|
||||||
|
content_type="application/json",
|
||||||
|
body='{"error":"Forbidden"}',
|
||||||
|
),
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
class TestGenerateFormStructural:
|
class TestGenerateFormStructural:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue