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