mirror of
				https://github.com/hwchase17/langchain.git
				synced 2025-11-04 10:10:09 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			8 lines
		
	
	
		
			312 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			8 lines
		
	
	
		
			312 B
		
	
	
	
		
			Python
		
	
	
	
	
	
from langchain_community.utilities.tavily_search import TavilySearchAPIWrapper
 | 
						|
 | 
						|
 | 
						|
def test_api_wrapper_api_key_not_visible() -> None:
 | 
						|
    """Test that an exception is raised if the API key is not present."""
 | 
						|
    wrapper = TavilySearchAPIWrapper(tavily_api_key="abcd123")
 | 
						|
    assert "abcd123" not in repr(wrapper)
 |