Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

Commit

Permalink
fix(tests): use TransactionTestCase where threads are used
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Monroy authored and Matthew Fisher committed Apr 15, 2014
1 parent 2fb3dfd commit 9e11148
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions controller/api/tests/test_build.py
Expand Up @@ -8,14 +8,14 @@

import json

from django.test import TestCase
from django.test import TransactionTestCase
from django.test.utils import override_settings

from api.models import Build


@override_settings(CELERY_ALWAYS_EAGER=True)
class BuildTest(TestCase):
class BuildTest(TransactionTestCase):

"""Tests build notification from build system"""

Expand Down
4 changes: 2 additions & 2 deletions controller/api/tests/test_config.py
Expand Up @@ -8,14 +8,14 @@

import json

from django.test import TestCase
from django.test import TransactionTestCase
from django.test.utils import override_settings

from api.models import Config


@override_settings(CELERY_ALWAYS_EAGER=True)
class ConfigTest(TestCase):
class ConfigTest(TransactionTestCase):

"""Tests setting and updating config values"""

Expand Down
4 changes: 2 additions & 2 deletions controller/api/tests/test_hooks.py
Expand Up @@ -8,14 +8,14 @@

import json

from django.test import TestCase
from django.test import TransactionTestCase
from django.test.utils import override_settings

from deis import settings


@override_settings(CELERY_ALWAYS_EAGER=True)
class HookTest(TestCase):
class HookTest(TransactionTestCase):

"""Tests API hooks used to trigger actions from external components"""

Expand Down
4 changes: 2 additions & 2 deletions controller/api/tests/test_release.py
Expand Up @@ -8,14 +8,14 @@

import json

from django.test import TestCase
from django.test import TransactionTestCase
from django.test.utils import override_settings

from api.models import Release


@override_settings(CELERY_ALWAYS_EAGER=True)
class ReleaseTest(TestCase):
class ReleaseTest(TransactionTestCase):

"""Tests push notification from build system"""

Expand Down

0 comments on commit 9e11148

Please sign in to comment.