Browse Source

Add transactional tests for integration and event manager

David Cramer 10 years ago
parent
commit
f9a7d89d16
2 changed files with 4 additions and 4 deletions
  1. 2 2
      tests/integration/tests.py
  2. 2 2
      tests/sentry/test_event_manager.py

+ 2 - 2
tests/integration/tests.py

@@ -17,7 +17,7 @@ from exam import fixture
 from raven import Client
 
 from sentry.models import Group, Event
-from sentry.testutils import TestCase
+from sentry.testutils import TestCase, TransactionTestCase
 from sentry.testutils.helpers import get_auth_header
 from sentry.utils.compat import StringIO
 from sentry.utils.settings import (
@@ -75,7 +75,7 @@ class AssertHandler(logging.Handler):
         raise AssertionError(entry.message)
 
 
-class RavenIntegrationTest(TestCase):
+class RavenIntegrationTest(TransactionTestCase):
     """
     This mocks the test server and specifically tests behavior that would
     happen between Raven <--> Sentry over HTTP communication.

+ 2 - 2
tests/sentry/test_event_manager.py

@@ -11,10 +11,10 @@ from django.conf import settings
 from sentry.constants import MAX_CULPRIT_LENGTH
 from sentry.event_manager import EventManager, get_hashes_for_event
 from sentry.models import Event, Group, GroupStatus, EventMapping
-from sentry.testutils import TestCase
+from sentry.testutils import TestCase, TransactionTestCase
 
 
-class EventManagerTest(TestCase):
+class EventManagerTest(TransactionTestCase):
     def make_event(self, **kwargs):
         result = {
             'event_id': 'a' * 32,