mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-03 03:16:10 -06:00 
			
		
		
		
	added a test case for the index
This commit is contained in:
		
							
								
								
									
										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([]), [])
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user