Skip to content

Commit 342d98c

Browse files
committed
remove unnecessary helper function
1 parent 7e0f542 commit 342d98c

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

codeforlife/models/signals/general.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,3 @@ def update_fields_includes(update_fields: UpdateFields, includes: t.Set[str]):
2222
A flag designating if the fields are included in the update-fields.
2323
"""
2424
return update_fields and includes.issubset(update_fields)
25-
26-
27-
def assert_update_fields_includes(
28-
update_fields: UpdateFields, includes: t.Set[str]
29-
):
30-
"""Assert the call to .save() includes the update-fields specified.
31-
32-
Args:
33-
update_fields: The update-fields provided in the call to .save().
34-
includes: The fields that should be included in the update-fields.
35-
"""
36-
missing_update_fields = includes.difference(update_fields or set())
37-
38-
assert not missing_update_fields, (
39-
"Call to .save() did not include the following update-fields: "
40-
f"{', '.join(missing_update_fields)}."
41-
)

0 commit comments

Comments
 (0)