MCPcopy Create free account
hub / github.com/apache/arrow / test_resolve_s3_region

Function test_resolve_s3_region

python/pyarrow/tests/test_fs.py:1995–2003  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1993
1994@pytest.mark.s3
1995def test_resolve_s3_region():
1996 from pyarrow.fs import resolve_s3_region
1997 assert resolve_s3_region('arrow-datasets') == 'us-east-1'
1998 assert resolve_s3_region('mf-nwp-models') == 'eu-west-1'
1999
2000 with pytest.raises(ValueError, match="Not a valid bucket name"):
2001 resolve_s3_region('foo/bar')
2002 with pytest.raises(ValueError, match="Not a valid bucket name"):
2003 resolve_s3_region('s3:bucket')
2004
2005
2006@pytest.mark.s3

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected