PHP 8.2.30
Preview: testutils.py Size: 697 B
/opt/cloudlinux/venv/lib64/python3.11/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: 14

Name Size Perms Modified Actions
- drwxr-xr-x 2026-02-06 08:01:08
Edit Download
- drwxr-xr-x 2026-02-06 08:01:17
Edit Download
2.39 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
5.54 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
2.29 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
3.23 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
1.95 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
404 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
2.91 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
3.51 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
9.80 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
697 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
1.06 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
476 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
3.64 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
3.14 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download

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