Skip to content

Commit 29d2c75

Browse files
committed
fix: update test for FieldModel.format_ rename
The FieldModel enum uses format_ (with underscore) instead of format because 'format' is a Python builtin. The string value is still 'format'.
1 parent 45350d1 commit 29d2c75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_type_coercion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def test_fields_accepts_string_list(self):
134134
assert len(req.fields) == 3
135135
assert req.fields[0] == FieldModel.creative_id
136136
assert req.fields[1] == FieldModel.name
137-
assert req.fields[2] == FieldModel.format
137+
assert req.fields[2] == FieldModel.format_ # Note: format_ because 'format' is a Python builtin
138138
assert all(isinstance(x, FieldModel) for x in req.fields)
139139

140140
def test_fields_accepts_enum_list(self):

0 commit comments

Comments
 (0)