Skip to content

Commit

Permalink
fix coverage with nested all
Browse files Browse the repository at this point in the history
  • Loading branch information
mmerickel committed Jan 2, 2023
1 parent 3770623 commit eb28892
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_colander.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,10 +184,10 @@ def test_asdict_with_msg_none(self):
node1 = DummySchemaNode(None, 'node1')
validator1 = DummyValidator('validator1')
validator2 = DummyValidatorWithMsgNone()
validator = All(validator1, validator2)
validator = All(All(validator1, validator2))
exc = invalid_exc(validator, node1, None)
# TypeError: sequence item 1: expected str instance, NoneType found
exc.asdict()
result = exc.asdict()
self.assertEqual(result, {'node1': 'validator1'})

def test___str__(self):
from colander import Positional
Expand Down

0 comments on commit eb28892

Please sign in to comment.