Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

Correctly split up the test cases

Trenton H2460c3e076cc
diff --git a/src/paperless/tests/test_settings.py b/src/paperless/tests/test_settings.py
index a8b5cd11f..f6d25f6fd 100644
--- a/src/paperless/tests/test_settings.py
+++ b/src/paperless/tests/test_settings.py
@@ -63,6 +63,8 @@ class TestIgnoreDateParsing(TestCase):
self._parse_checker(test_cases)
+
+class TestThreadCalculation(TestCase):
def test_workers_threads(self):
"""
GIVEN:
@@ -87,6 +89,8 @@ class TestIgnoreDateParsing(TestCase):
self.assertLessEqual(default_workers * default_threads, i)
+
+class TestRedisSocketConversion(TestCase):
def test_redis_socket_parsing(self):
"""
GIVEN:
@@ -143,6 +147,8 @@ class TestIgnoreDateParsing(TestCase):
result = _parse_redis_url(input)
self.assertTupleEqual(expected, result)
+
+class TestCeleryScheduleParsing(TestCase):
def test_schedule_configuration_default(self):
"""
GIVEN: