mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-11-04 07:05:41 +00:00 
			
		
		
		
	try fixing test?
This commit is contained in:
		@@ -473,7 +473,7 @@ class GeneralApiTests(InvenTreeAPITestCase):
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
            # File is not a json
 | 
					            # File is not a json
 | 
				
			||||||
            with self.assertLogs(logger='inventree', level='ERROR') as log:
 | 
					            with self.assertLogs(logger='inventree', level='ERROR') as log:
 | 
				
			||||||
                respo = read_license_file(Path(sample_file.file.name))
 | 
					                respo = read_license_file(Path(str(sample_file.file.name)))
 | 
				
			||||||
                self.assertEqual(respo, [])
 | 
					                self.assertEqual(respo, [])
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                self.assertIn('Failed to parse license file', str(log.output))
 | 
					                self.assertIn('Failed to parse license file', str(log.output))
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user