fix test cases

This commit is contained in:
jonaswinkler
2020-12-19 20:39:56 +01:00
parent 829dd7398c
commit 0902f464b6
2 changed files with 3 additions and 7 deletions

View File

@@ -21,12 +21,11 @@ class TestChecks(DirectoriesMixin, TestCase):
self.assertEqual(paths_check(None), [])
@override_settings(MEDIA_ROOT="uuh",
STATIC_ROOT="somewhere",
DATA_DIR="whatever",
CONSUMPTION_DIR="idontcare")
def test_paths_check_dont_exist(self):
msgs = paths_check(None)
self.assertEqual(len(msgs), 4)
self.assertEqual(len(msgs), 3, str(msgs))
for msg in msgs:
self.assertTrue(msg.msg.endswith("is set but doesn't exist."))