mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-11 10:00:48 -05:00
added a test case for the index
This commit is contained in:
parent
172b37239f
commit
ea089de3b3
14
src/documents/tests/test_index.py
Normal file
14
src/documents/tests/test_index.py
Normal 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([]), [])
|
||||||
|
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user