aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bot/test_constants.py
diff options
context:
space:
mode:
authorGravatar Leon Sandøy <[email protected]>2020-05-28 01:29:34 +0200
committerGravatar Leon Sandøy <[email protected]>2020-05-28 01:29:34 +0200
commitf66a63501fe1ef8fb5390dfbe42ae9f95ea2bc28 (patch)
tree0e462b216dd21d9434bfcb9ef0c2206aed7fc4be /tests/bot/test_constants.py
parentMake prefix consts private and more precise. (diff)
Add custom exceptions for each error state.
The bot can get into trouble in three distinct ways: - It has no Bot instance - It has no namespace - It has no parent instance. These happen only if you're using it wrong. To make the test more precise, and to add a little bit more readability (RuntimeError could be anything!), we'll introduce some custom exceptions for these three states. This addresses a review comment by @aeros.
Diffstat (limited to 'tests/bot/test_constants.py')
0 files changed, 0 insertions, 0 deletions