Skip to content

Commit

Permalink
add test for 1298 (#1300)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhewitt committed May 22, 2024
1 parent 88a8a30 commit 0dcf82a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/serializers/test_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ def test_include():
]
with pytest.raises(ValueError, match='Negative indices cannot be used to exclude items on unsized iterables'):
v.to_python(gen_ok('a', 'b', 'c', 'd', 'e', 'f', 'g', 'h'), include={-1: None, -2: None}, mode='json')
# Non-integer keys are ignored
v.to_python(gen_ok('a', 'b', 'c', 'd', 'e', 'f', 'g', 'h'), include={'__all__': None}, mode='json')


def test_custom_serializer():
Expand Down

0 comments on commit 0dcf82a

Please sign in to comment.