Returns True if exceptions should be raised instead of caught (for testing and development).
(self)
| 593 | return getattr(self, 'mode', 'production').lower() == 'testing' |
| 594 | |
| 595 | def should_raise_exceptions(self) -> bool: |
| 596 | """Returns True if exceptions should be raised instead of caught (for testing and development).""" |
| 597 | return self.is_testing_mode() or self.is_development_mode() |
| 598 | |
| 599 | def set_mode(self, mode: str): |
| 600 | """Set the application mode (development, production, or testing).""" |
no test coverage detected