""" raven.utils.testutils ~~~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2010-2013 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from __future__ import absolute_import import raven from exam import Exam try: from unittest2 import TestCase as BaseTestCase except ImportError: from unittest import TestCase as BaseTestCase # NOQA class TestCase(Exam, BaseTestCase): pass class InMemoryClient(raven.Client): def __init__(self, **kwargs): self.events = [] super(InMemoryClient, self).__init__(**kwargs) def is_enabled(self): return True def send(self, **kwargs): self.events.append(kwargs)
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
__pycache__ | Folder | 0755 |
|
|
serializer | Folder | 0755 |
|
|
__init__.py | File | 3.14 KB | 0644 |
|
basic.py | File | 2.39 KB | 0644 |
|
compat.py | File | 5.54 KB | 0644 |
|
conf.py | File | 2.29 KB | 0644 |
|
encoding.py | File | 3.23 KB | 0644 |
|
http.py | File | 1.95 KB | 0644 |
|
imports.py | File | 404 B | 0644 |
|
json.py | File | 2.91 KB | 0644 |
|
ssl_match_hostname.py | File | 3.51 KB | 0644 |
|
stacks.py | File | 9.8 KB | 0644 |
|
testutils.py | File | 697 B | 0644 |
|
transaction.py | File | 1.06 KB | 0644 |
|
urlparse.py | File | 476 B | 0644 |
|
wsgi.py | File | 3.64 KB | 0644 |
|