Commit 3d67c506 by Ned Batchelder

Use TransactionTestCase, to keep other tests from failing, even though it slows them down.

parent 10f062cf
...@@ -7,7 +7,7 @@ import textwrap ...@@ -7,7 +7,7 @@ import textwrap
import dateutil.parser import dateutil.parser
from django.test import TestCase from django.test import TransactionTestCase
from django.db import connection from django.db import connection
from courseware.management.commands.clean_history import StudentModuleHistoryCleaner from courseware.management.commands.clean_history import StudentModuleHistoryCleaner
...@@ -43,7 +43,7 @@ class SmhcDbMocked(SmhcSayStubbed): ...@@ -43,7 +43,7 @@ class SmhcDbMocked(SmhcSayStubbed):
self.get_history_for_student_modules.return_value = rows self.get_history_for_student_modules.return_value = rows
class HistoryCleanerTest(TestCase): class HistoryCleanerTest(TransactionTestCase):
"""Base class for all history cleaner tests.""" """Base class for all history cleaner tests."""
maxDiff = None maxDiff = None
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment