Ejemplo n.º 1
0
def test_should_return_credentials_path_set_by_env_var():
    env = {"PANDAS_GBQ_CREDENTIALS_FILE": "/tmp/dummy.dat"}
    with mock.patch.dict("os.environ", env):
        assert gbq._get_credentials_file() == "/tmp/dummy.dat"
Ejemplo n.º 2
0
def test_should_return_credentials_path_set_by_env_var():
    env = {'PANDAS_GBQ_CREDENTIALS_FILE': '/tmp/dummy.dat'}
    with mock.patch.dict('os.environ', env):
        assert gbq._get_credentials_file() == '/tmp/dummy.dat'