| Commit message (Collapse) | Author | Age | Lines |
| |
|
| |
|
|
|
|
|
|
|
| |
Isolates the global variables in the unittest template into a function,
to prevent them from being imported.
Signed-off-by: Hassan Abouelela <[email protected]>
|
|
|
|
|
|
|
|
| |
The codejam test suite uses async functions, which would be annoying to
deal with in our current template. Switching to async makes that
available to those who want it, without affecting those who don't.
Signed-off-by: Hassan Abouelela <[email protected]>
|
|
|
|
|
|
|
|
|
|
| |
Adds the setup method as a special method for unittest question types.
Additionally, a couple QoL fixes are included. I changed `unit` to
`self` to clarify what it actually is, and I changed an `lstrip` to a
`removeprefix` to avoid removing unintentional portions of the name
(for instance `something` -> `omething`)
Signed-off-by: Hassan Abouelela <[email protected]>
|
|
|
|
|
|
|
|
| |
Change the exception handler in the unittest template to handle
BaseExceptions that don't inherit from Exception. Additionally, account
for user invoked system exits.
Signed-off-by: Hassan Abouelela <[email protected]>
|
|
|
|
|
|
|
|
| |
Patching just `sys.stdout` allowed users to still access stdout via
`sys.__stdout__`. The same was true for stderr. Both have been
explicitly patched now.
Signed-off-by: Hassan Abouelela <[email protected]>
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|