mirror of
				https://git.dn42.dev/dn42/registry.git
				synced 2025-10-31 11:40:40 +08:00 
			
		
		
		
	add some more checks
This commit is contained in:
		
							parent
							
								
									70ab70c398
								
							
						
					
					
						commit
						a589d521da
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		|  | @ -258,6 +258,8 @@ class TestSchema(unittest.TestCase): | ||||||
|             schema = SchemaDOM() |             schema = SchemaDOM() | ||||||
|             schema.parse(dom) |             schema.parse(dom) | ||||||
| 
 | 
 | ||||||
|  |             self.assertTrue(schema.valid) | ||||||
|  | 
 | ||||||
|             schemas[schema.ref] = schema |             schemas[schema.ref] = schema | ||||||
| 
 | 
 | ||||||
|         files = [] |         files = [] | ||||||
|  | @ -267,6 +269,9 @@ class TestSchema(unittest.TestCase): | ||||||
|             dom = FileDOM(src=fname) |             dom = FileDOM(src=fname) | ||||||
|             dom.parse(text.splitlines()) |             dom.parse(text.splitlines()) | ||||||
| 
 | 
 | ||||||
|  |             self.assertTrue(dom.valid) | ||||||
|  |             self.assertEqual(str(dom), text) | ||||||
|  | 
 | ||||||
|             files.append(dom) |             files.append(dom) | ||||||
| 
 | 
 | ||||||
|             name = dom.src.split("/")[-1].replace("_", "/") |             name = dom.src.split("/")[-1].replace("_", "/") | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Jon Lundy
						Jon Lundy