Skip to content

Commit

Permalink
docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
joshua-stauffer committed Dec 19, 2024
1 parent e265345 commit 5acc32a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions great_expectations/core/factory/suite_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,13 @@ def all(self) -> Iterable[ExpectationSuite]:

@public_api
def add_or_update(self, suite: ExpectationSuite) -> ExpectationSuite:
"""Add or update an ExpectationSuite by name.
If an ExpectationSuite with the same name exists, overwrite it, otherwise
create a new ExpectationSuite. On update, Expectations in the Suite which
match a previously existing Expectation maintain a stable ID, and
Expectations which have changed receive a new ID.
"""
try:
existing_suite = self.get(name=suite.name)
except DataContextError:
Expand Down

0 comments on commit 5acc32a

Please sign in to comment.