Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

fix snapshots for test (#5771)

Shahmir Varqhae3d6bedb0b33
diff --git a/tests/_data/snapshots/column_preview_bool_chart_code.txt b/tests/_data/snapshots/column_preview_bool_chart_code.txt
index cb9c9daa11..db2de5cf79 100644
--- a/tests/_data/snapshots/column_preview_bool_chart_code.txt
+++ b/tests/_data/snapshots/column_preview_bool_chart_code.txt
@@ -1,5 +1,5 @@
_base = (
- alt.Chart(table)
+ alt.Chart([]) # <-- replace with data
.transform_aggregate(count="count()", groupby=["bool_col"])
.transform_joinaggregate(total="sum(count)")
.transform_calculate(percentage="datum.count / datum.total")
diff --git a/tests/_data/snapshots/column_preview_categorical_chart_code.txt b/tests/_data/snapshots/column_preview_categorical_chart_code.txt
index 0f01d35606..f80ca02478 100644
--- a/tests/_data/snapshots/column_preview_categorical_chart_code.txt
+++ b/tests/_data/snapshots/column_preview_categorical_chart_code.txt
@@ -1,5 +1,5 @@
_chart = (
- alt.Chart(table)
+ alt.Chart([]) # <-- replace with data
.mark_bar()
.transform_aggregate(count="count()", groupby=["category_col"])
.transform_window(
diff --git a/tests/_data/snapshots/column_preview_date_chart_code.txt b/tests/_data/snapshots/column_preview_date_chart_code.txt
index 386b329fa1..1036c8029c 100644
--- a/tests/_data/snapshots/column_preview_date_chart_code.txt
+++ b/tests/_data/snapshots/column_preview_date_chart_code.txt
@@ -1,5 +1,5 @@
_chart = (
- alt.Chart(table)
+ alt.Chart([]) # <-- replace with data
.transform_filter(f"datum.date_col != null")
.transform_timeunit(as_="_date_col", field="date_col", timeUnit="yearmonthdate")
.mark_area()
diff --git a/tests/_data/snapshots/column_preview_float_chart_code.txt b/tests/_data/snapshots/column_preview_float_chart_code.txt
index 3c9731080e..fd3a060979 100644
--- a/tests/_data/snapshots/column_preview_float_chart_code.txt
+++ b/tests/_data/snapshots/column_preview_float_chart_code.txt
@@ -1,5 +1,5 @@
_chart = (
- alt.Chart(table)
+ alt.Chart([]) # <-- replace with data
.mark_bar()
.encode(
x=alt.X("float_col", type="quantitative", bin=True, title="float_col"),
diff --git a/tests/_data/snapshots/column_preview_int_chart_code.txt b/tests/_data/snapshots/column_preview_int_chart_code.txt
index e7088a1bd3..6f3dcfc6e9 100644
--- a/tests/_data/snapshots/column_preview_int_chart_code.txt
+++ b/tests/_data/snapshots/column_preview_int_chart_code.txt
@@ -1,5 +1,5 @@
_chart = (
- alt.Chart(table)
+ alt.Chart([]) # <-- replace with data
.mark_bar()
.encode(
x=alt.X("A", type="quantitative", bin=True, title="A"),
diff --git a/tests/_data/snapshots/column_preview_str_chart_code.txt b/tests/_data/snapshots/column_preview_str_chart_code.txt
index 8053cef631..3877ca613d 100644
--- a/tests/_data/snapshots/column_preview_str_chart_code.txt
+++ b/tests/_data/snapshots/column_preview_str_chart_code.txt
@@ -1,5 +1,5 @@
_chart = (
- alt.Chart(table)
+ alt.Chart([]) # <-- replace with data
.mark_bar()
.transform_aggregate(count="count()", groupby=["B"])
.transform_window(