From ea089de3b3e17b0e5a3d444db2b86b246a2f6859 Mon Sep 17 00:00:00 2001 From: Jonas Winkler Date: Sun, 22 Nov 2020 11:42:30 +0100 Subject: [PATCH] added a test case for the index --- src/documents/tests/test_index.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/documents/tests/test_index.py diff --git a/src/documents/tests/test_index.py b/src/documents/tests/test_index.py new file mode 100644 index 000000000..830fca0e0 --- /dev/null +++ b/src/documents/tests/test_index.py @@ -0,0 +1,14 @@ +from django.test import TestCase + +from documents.index import JsonFormatter + + +class JsonFormatterTest(TestCase): + + def setUp(self) -> None: + self.formatter = JsonFormatter() + + def test_empty_fragments(self): + self.assertListEqual(self.formatter.format([]), []) + +