When you aren’t sure what’s going to happen or there’s some ambiguity about whether something will work, raise an exception and fail right there and then with an explanation of what went wrong so you can avoid having to dig through fucking tracebacks for 2 hours.
class TestMaintMode:
@pytest.mark.asyncio
async def test_maint_mode(self, bot, aresponses):
# given/prep/arrange
# when/act/do
# then/assert/check
assert
a call to the function ==
a certain value that you know should be truepytest
Rendering context...