Skip to content

Commit 0241139

Browse files
authored
chore: add experimental blob url tests (#1463)
* chore: add experimental blob url tests * fix
1 parent 7b0cab5 commit 0241139

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

tests/system/small/blob/test_urls.py

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Copyright 2025 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
import bigframes
16+
import bigframes.pandas as bpd
17+
18+
19+
def test_blob_read_url(images_mm_df: bpd.DataFrame):
20+
bigframes.options.experiments.blob = True
21+
22+
urls = images_mm_df["blob_col"].blob.read_url()
23+
24+
assert urls.str.startswith("https://storage.googleapis.com/").all()
25+
26+
27+
def test_blob_write_url(images_mm_df: bpd.DataFrame):
28+
bigframes.options.experiments.blob = True
29+
30+
urls = images_mm_df["blob_col"].blob.write_url()
31+
32+
assert urls.str.startswith("https://storage.googleapis.com/").all()

0 commit comments

Comments
 (0)