File tree 1 file changed +32
-0
lines changed
1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change
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 ()
You can’t perform that action at this time.
0 commit comments