moo.core.tests.utils
Shared helpers for moo.core tests.
Functions
|
Create a Verb + VerbName directly via ORM, bypassing permission checks. |
|
Open a ContextManager session for the given caller. |
|
Run verb source in the restricted environment, return printed output. |
|
Build a restricted execution globals dict for the given writer. |
|
Minimal caller stand-in that satisfies is_wizard() checks (no DB needed). |
|
Assert that running src in the restricted environment raises the given exception. |