| 
									
										
										
										
											2024-08-19 09:09:35 +02:00
										 |  |  | import sys | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | import pytest | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | from metadata.ingestion.lineage.sql_lineage import search_cache | 
					
						
							|  |  |  | from metadata.workflow.metadata import MetadataWorkflow | 
					
						
							|  |  |  | from metadata.workflow.profiler import ProfilerWorkflow | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | if not sys.version_info >= (3, 9): | 
					
						
							|  |  |  |     pytest.skip("requires python 3.9+", allow_module_level=True) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | def test_profiler( | 
					
						
							| 
									
										
										
										
											2025-04-02 08:38:17 +02:00
										 |  |  |     patch_passwords_for_db_services, | 
					
						
							|  |  |  |     run_workflow, | 
					
						
							|  |  |  |     ingestion_config, | 
					
						
							|  |  |  |     profiler_config, | 
					
						
							|  |  |  |     mysql_container, | 
					
						
							| 
									
										
										
										
											2024-08-19 09:09:35 +02:00
										 |  |  | ): | 
					
						
							|  |  |  |     search_cache.clear() | 
					
						
							|  |  |  |     run_workflow(MetadataWorkflow, ingestion_config) | 
					
						
							|  |  |  |     run_workflow(ProfilerWorkflow, profiler_config) |