Skip to content

Commit 159fe0d

Browse files
einavfiterTBalexbarrosfabclmnt
authored
fix: 1540 add_expectation_suite doesn't have key overwrite_existing (#1541)
* fix:1540 add_expectation_suite doesn't have key overwrite_existing * Update test_ge_integration.py remove 'overwrite_existing=True' --------- Co-authored-by: Alex Barros <[email protected]> Co-authored-by: Fabiana <[email protected]>
1 parent 707bf71 commit 159fe0d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/ydata_profiling/expectations_report.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@ def to_expectation_suite(
7979
if not data_context:
8080
data_context = ge.data_context.DataContext()
8181

82-
suite = data_context.add_expectation_suite(suite_name, overwrite_existing=True)
82+
suite = data_context.add_expectation_suite(
83+
suite_name
84+
)
8385

8486
# Instantiate an in-memory pandas dataset
8587
batch = ge.dataset.PandasDataset(self.df, expectation_suite=suite)

tests/unit/test_ge_integration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def test_to_expectations_suite_title(context, df):
9393
)
9494

9595
context.add_expectation_suite.assert_called_once_with(
96-
"expectations-dataset", overwrite_existing=True
96+
"expectations-dataset"
9797
)
9898

9999

0 commit comments

Comments
 (0)