Skip to content
This repository was archived by the owner on May 7, 2026. It is now read-only.

Commit e18fa8f

Browse files
committed
Remove tests for removed function.
1 parent faf644c commit e18fa8f

1 file changed

Lines changed: 0 additions & 32 deletions

File tree

tests/unit/bigquery/test_bigquery.py

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -3046,35 +3046,3 @@ def test_test_bigquery_magic__extension_loaded__is_registered_set_to_true():
30463046
ip.extension_manager.load_extension("bigquery_magics")
30473047

30483048
assert bigquery_magics.is_registered is True
3049-
3050-
3051-
def test__estimate_json_size_empty():
3052-
df = pandas.DataFrame()
3053-
assert magics._estimate_json_size(df) == 2
3054-
3055-
3056-
def test__estimate_json_size_bool():
3057-
df = pandas.DataFrame({"a": [True, False]}, dtype="bool")
3058-
# key_overhead: (len('"a":') + 1) * 2 = 5 * 2 = 10
3059-
# structural_overhead: (2 * 2) + 2 + (2 - 1) = 7
3060-
# total_val_len: 4 (true) + 5 (false) = 9
3061-
# total = 10 + 7 + 9 = 26
3062-
assert magics._estimate_json_size(df) == 26
3063-
3064-
3065-
def test__estimate_json_size_int():
3066-
df = pandas.DataFrame({"a": [3, 4]})
3067-
# key_overhead: (len('"a":') + 1) * 2 = 5 * 2 = 10
3068-
# structural_overhead: (2 * 2) + 2 + (2 - 1) = 7
3069-
# total_val_len: 4 (true) + 5 (false) = 9
3070-
# total = 10 + 7 + 9 = 26
3071-
assert magics._estimate_json_size(df) == 19
3072-
3073-
3074-
def test__estimate_json_size_string():
3075-
df = pandas.DataFrame({"a": ["x", "yz"]})
3076-
# key_overhead: (len('"a":') + 1) * 2 = 5 * 2 = 10
3077-
# structural_overhead: (2 * 2) + 2 + (2 - 1) = 7
3078-
# total_val_len: (1 + 2) + (2 * 2) = 7
3079-
# total = 10 + 7 + 7 = 24
3080-
assert magics._estimate_json_size(df) == 24

0 commit comments

Comments
 (0)