File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -713,29 +713,31 @@ def test_object_no_one_of(self, value):
713713
714714 @pytest .mark .parametrize ('value' , [
715715 Model ({
716- 'foo' : 'FOO' ,
716+ u 'foo' : u 'FOO' ,
717717 }),
718718 Model ({
719- 'foo' : 'FOO' ,
720- 'bar' : 'BAR' ,
719+ u 'foo' : u 'FOO' ,
720+ u 'bar' : u 'BAR' ,
721721 }),
722722 ])
723723 def test_unambiguous_one_of (self , value ):
724724 one_of = [
725725 Schema (
726726 'object' ,
727727 properties = {
728- 'bar ' : Schema ('string' ),
728+ u'foo ' : Schema ('string' ),
729729 },
730730 additional_properties = False ,
731+ required = [u'foo' ],
731732 ),
732733 Schema (
733734 'object' ,
734735 properties = {
735- 'foo' : Schema ('string' ),
736- 'bar' : Schema ('string' ),
736+ u 'foo' : Schema ('string' ),
737+ u 'bar' : Schema ('string' ),
737738 },
738739 additional_properties = False ,
740+ required = [u'foo' , u'bar' ],
739741 ),
740742 ]
741743 schema = Schema ('object' , one_of = one_of )
You can’t perform that action at this time.
0 commit comments