Returns True if the system is running in testing mode.
(self)
| 589 | return getattr(self, 'mode', 'production').lower() == 'development' |
| 590 | |
| 591 | def is_testing_mode(self) -> bool: |
| 592 | """Returns True if the system is running in testing mode.""" |
| 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).""" |
no outgoing calls