def test_not_in_whitelist(self): with Settings(SENTRY_USE_QUEUE=('%s.foo' % (__name__, ))): self.assertFalse(can_queue(test_func))
def test_empty_whitelist(self): with Settings(SENTRY_USE_QUEUE=()): self.assertFalse(can_queue(test_func))
def test_enabled(self): with Settings(SENTRY_USE_QUEUE=True): self.assertTrue(can_queue(test_func))
def test_disabled(self): with Settings(SENTRY_USE_QUEUE=False): self.assertFalse(can_queue(test_func))
def test_not_in_whitelist(self): with self.Settings(SENTRY_USE_QUEUE=('%s.foo' % (__name__,))): self.assertFalse(can_queue(test_func))
def test_enabled(self): with self.Settings(SENTRY_USE_QUEUE=True): self.assertTrue(can_queue(test_func))
def test_empty_whitelist(self): with self.Settings(SENTRY_USE_QUEUE=()): self.assertFalse(can_queue(test_func))
def test_disabled(self): with self.Settings(SENTRY_USE_QUEUE=False): self.assertFalse(can_queue(test_func))