Refines the sanity check header, fixes other test issues

This commit is contained in:
Trenton Holmes
2022-05-30 17:29:30 -07:00
parent 0a34a4a7ad
commit be304e37b4
4 changed files with 11 additions and 7 deletions

View File

@@ -6,6 +6,7 @@ import tempfile
from pathlib import Path
from unittest import mock
import pytest
from django.core.management import call_command
from django.test import override_settings
from django.test import TestCase
@@ -190,7 +191,7 @@ class TestExportImport(DirectoriesMixin, TestCase):
self.assertEqual(Document.objects.get(id=self.d4.id).title, "wow_dec")
messages = check_sanity()
# everything is alright after the test
self.assertEqual(len(messages), 0, str([str(m) for m in messages]))
self.assertEqual(len(messages), 0)
def test_exporter_with_filename_format(self):
shutil.rmtree(os.path.join(self.dirs.media_dir, "documents"))