Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 1540 add_expectation_suite doesn't have key overwrite_existing #1541

Merged
merged 8 commits into from
May 31, 2024
4 changes: 3 additions & 1 deletion src/ydata_profiling/expectations_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ def to_expectation_suite(
if not data_context:
data_context = ge.data_context.DataContext()

suite = data_context.add_expectation_suite(suite_name, overwrite_existing=True)
suite = data_context.add_expectation_suite(
suite_name
)

# Instantiate an in-memory pandas dataset
batch = ge.dataset.PandasDataset(self.df, expectation_suite=suite)
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_ge_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def test_to_expectations_suite_title(context, df):
)

context.add_expectation_suite.assert_called_once_with(
"expectations-dataset", overwrite_existing=True
"expectations-dataset"
)


Expand Down
Loading