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):
713
713
714
714
@pytest .mark .parametrize ('value' , [
715
715
Model ({
716
- 'foo' : 'FOO' ,
716
+ u 'foo' : u 'FOO' ,
717
717
}),
718
718
Model ({
719
- 'foo' : 'FOO' ,
720
- 'bar' : 'BAR' ,
719
+ u 'foo' : u 'FOO' ,
720
+ u 'bar' : u 'BAR' ,
721
721
}),
722
722
])
723
723
def test_unambiguous_one_of (self , value ):
724
724
one_of = [
725
725
Schema (
726
726
'object' ,
727
727
properties = {
728
- 'bar ' : Schema ('string' ),
728
+ u'foo ' : Schema ('string' ),
729
729
},
730
730
additional_properties = False ,
731
+ required = [u'foo' ],
731
732
),
732
733
Schema (
733
734
'object' ,
734
735
properties = {
735
- 'foo' : Schema ('string' ),
736
- 'bar' : Schema ('string' ),
736
+ u 'foo' : Schema ('string' ),
737
+ u 'bar' : Schema ('string' ),
737
738
},
738
739
additional_properties = False ,
740
+ required = [u'foo' , u'bar' ],
739
741
),
740
742
]
741
743
schema = Schema ('object' , one_of = one_of )
You can’t perform that action at this time.
0 commit comments