File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -533,7 +533,8 @@ def test_valid_inputs(self):
533
533
Ensure that valid values return the expected validated data.
534
534
"""
535
535
for input_value , expected_output in get_items (self .valid_inputs ):
536
- assert self .field .run_validation (input_value ) == expected_output
536
+ assert self .field .run_validation (input_value ) == expected_output , \
537
+ 'input value: {}' .format (repr (input_value ))
537
538
538
539
def test_invalid_inputs (self ):
539
540
"""
@@ -542,11 +543,13 @@ def test_invalid_inputs(self):
542
543
for input_value , expected_failure in get_items (self .invalid_inputs ):
543
544
with pytest .raises (serializers .ValidationError ) as exc_info :
544
545
self .field .run_validation (input_value )
545
- assert exc_info .value .detail == expected_failure
546
+ assert exc_info .value .detail == expected_failure , \
547
+ 'input value: {}' .format (repr (input_value ))
546
548
547
549
def test_outputs (self ):
548
550
for output_value , expected_output in get_items (self .outputs ):
549
- assert self .field .to_representation (output_value ) == expected_output
551
+ assert self .field .to_representation (output_value ) == expected_output , \
552
+ 'output value: {}' .format (repr (output_value ))
550
553
551
554
552
555
# Boolean types...
You can’t perform that action at this time.
0 commit comments