def test_current(): from google.auth import credentials with gcs_maker() as gcs: assert GCSFileSystem.current() is gcs gcs2 = GCSFileSystem(TEST_PROJECT, token=GOOGLE_TOKEN) assert gcs2.session is gcs.session gcs2 = GCSFileSystem(TEST_PROJECT, token=GOOGLE_TOKEN, secure_serialize=False) assert isinstance(gcs2.token, credentials.Credentials)
def test_current(): with gcs_maker() as gcs: assert GCSFileSystem.current() is gcs gcs2 = GCSFileSystem(TEST_PROJECT, token=GOOGLE_TOKEN) assert gcs2.session is gcs.session
def test_current(token_restore): with gcs_maker() as gcs: assert GCSFileSystem.current() is gcs