File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88
99import json
1010
11- from django .test import TestCase
11+ from django .test import TransactionTestCase
1212from django .test .utils import override_settings
1313
1414from api .models import Build
1515
1616
1717@override_settings (CELERY_ALWAYS_EAGER = True )
18- class BuildTest (TestCase ):
18+ class BuildTest (TransactionTestCase ):
1919
2020 """Tests build notification from build system"""
2121
Original file line number Diff line number Diff line change 88
99import json
1010
11- from django .test import TestCase
11+ from django .test import TransactionTestCase
1212from django .test .utils import override_settings
1313
1414from api .models import Config
1515
1616
1717@override_settings (CELERY_ALWAYS_EAGER = True )
18- class ConfigTest (TestCase ):
18+ class ConfigTest (TransactionTestCase ):
1919
2020 """Tests setting and updating config values"""
2121
Original file line number Diff line number Diff line change 88
99import json
1010
11- from django .test import TestCase
11+ from django .test import TransactionTestCase
1212from django .test .utils import override_settings
1313
1414from deis import settings
1515
1616
1717@override_settings (CELERY_ALWAYS_EAGER = True )
18- class HookTest (TestCase ):
18+ class HookTest (TransactionTestCase ):
1919
2020 """Tests API hooks used to trigger actions from external components"""
2121
Original file line number Diff line number Diff line change 88
99import json
1010
11- from django .test import TestCase
11+ from django .test import TransactionTestCase
1212from django .test .utils import override_settings
1313
1414from api .models import Release
1515
1616
1717@override_settings (CELERY_ALWAYS_EAGER = True )
18- class ReleaseTest (TestCase ):
18+ class ReleaseTest (TransactionTestCase ):
1919
2020 """Tests push notification from build system"""
2121
You can’t perform that action at this time.
0 commit comments