revert a faulty change that caused memory usage to explode #537

This commit is contained in:
jonaswinkler
2021-02-13 19:51:04 +01:00
parent 269b7aec38
commit c946263f31
4 changed files with 18 additions and 37 deletions

View File

@@ -52,7 +52,6 @@ class TestTasks(DirectoriesMixin, TestCase):
load_classifier.assert_called_once()
self.assertFalse(os.path.isfile(settings.MODEL_FILE))
@override_settings(CACHES={'default': {'BACKEND': 'django.core.cache.backends.dummy.DummyCache'}})
def test_train_classifier(self):
c = Correspondent.objects.create(matching_algorithm=Tag.MATCH_AUTO, name="test")
doc = Document.objects.create(correspondent=c, content="test", title="test")