from pytest import raises from ytownership import config from ytownership.connectors.youtube import ServiceMapping def test_google_credentials(): """Test google authorization credentials. GOOGLE_API_KEY_FILE from config file. """ assert config.GOOGLE_API_KEY_FILE is not None def test_test_empty_file_exceptions(): """Test of empty file path to Google API key file. """ mock_empty_file = None with raises(ValueError): ServiceMapping( mock_empty_file)