PHP 8.2.30
Preview: testutils.py Size: 697 B
//proc/thread-self/root/proc/self/root/opt/alt/python37/lib/python3.7/site-packages/raven/utils/testutils.py

"""
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)

Directory Contents

Dirs: 2 × Files: 13

Name Size Perms Modified Actions
- drwxr-xr-x 2024-03-03 23:10:23
Edit Download
- drwxr-xr-x 2024-03-03 23:10:23
Edit Download
5.54 KB lrw-r--r-- 2017-10-29 17:41:19
Edit Download
2.22 KB lrw-r--r-- 2017-10-29 17:41:19
Edit Download
3.23 KB lrw-r--r-- 2017-10-29 17:41:19
Edit Download
1.95 KB lrw-r--r-- 2017-10-29 17:41:19
Edit Download
404 B lrw-r--r-- 2017-10-29 17:41:19
Edit Download
2.54 KB lrw-r--r-- 2017-10-29 17:41:19
Edit Download
3.51 KB lrw-r--r-- 2017-10-29 17:41:19
Edit Download
9.81 KB lrw-r--r-- 2017-10-29 17:41:19
Edit Download
697 B lrw-r--r-- 2017-10-29 17:41:19
Edit Download
1.06 KB lrw-r--r-- 2017-10-29 17:41:19
Edit Download
476 B lrw-r--r-- 2017-10-29 17:41:19
Edit Download
3.64 KB lrw-r--r-- 2017-10-29 17:41:19
Edit Download
4.71 KB lrw-r--r-- 2017-10-29 17:41:19
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).