QuackatronHQ / Gigarepo

Explicit exception raised in the assert message PTC-W0032
Bug risk
3 months ago9 months old
Built-in exception RuntimeError would be ineffective when assert fails
28        self.signed_in = True
29
30    def check_signed_in(self):
31        assert self.signed_in == True, RuntimeError("You are not authorized!")32
33
34class AdminDashboard(BasePage, AdminMixin, SigninMixin, AdminMixin):