mirror of
				https://github.com/Unstructured-IO/unstructured.git
				synced 2025-10-31 10:03:07 +00:00 
			
		
		
		
	 d726963e42
			
		
	
	
		d726963e42
		
			
		
	
	
	
	
		
			
			Each partitioner has a test like `test_partition_x_with_json()`. What these do is serialize the elements produced by the partitioner to JSON, then read them back in from JSON and compare the before and after elements. Because our element equality (`Element.__eq__()`) is shallow, this doesn't tell us a lot, but if we take it one more step, like `List[Element] -> JSON -> List[Element] -> JSON` and then compare the JSON, it gives us some confidence that the serialized elements can be "re-hydrated" without losing any information. This actually showed up a few problems, all in the serialization/deserialization (serde) code that all elements share.
		
			
				
	
	
		
			0 lines
		
	
	
		
			0 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			0 lines
		
	
	
		
			0 B
		
	
	
	
		
			Python
		
	
	
	
	
	
	The file is empty.