()
| 1993 | |
| 1994 | @pytest.mark.s3 |
| 1995 | def 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 |
nothing calls this directly
no outgoing calls
no test coverage detected