added a test case for the index

This commit is contained in:
Jonas Winkler 2020-11-22 11:42:30 +01:00
parent 172b37239f
commit ea089de3b3

View File

@ -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([]), [])