mirror of
				https://github.com/datahub-project/datahub.git
				synced 2025-11-03 20:27:50 +00:00 
			
		
		
		
	fix(ingest/sql): disable patch checker (#11910)
This commit is contained in:
		
							parent
							
								
									7e9fa81580
								
							
						
					
					
						commit
						37bb0c9eae
					
				@ -1,5 +1,6 @@
 | 
			
		||||
import os
 | 
			
		||||
import sys
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def is_pytest_running() -> bool:
 | 
			
		||||
    return "pytest" in sys.modules
 | 
			
		||||
    return "pytest" in sys.modules and os.environ.get("DATAHUB_TEST_MODE") == "1"
 | 
			
		||||
 | 
			
		||||
@ -7,6 +7,7 @@ from typing import List
 | 
			
		||||
import pytest
 | 
			
		||||
 | 
			
		||||
os.environ["DATAHUB_SUPPRESS_LOGGING_MANAGER"] = "1"
 | 
			
		||||
os.environ["DATAHUB_TEST_MODE"] = "1"
 | 
			
		||||
 | 
			
		||||
# Enable debug logging.
 | 
			
		||||
logging.getLogger().setLevel(logging.DEBUG)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user