Skip to content

Commit 14196b6

Browse files
author
Diogo Baeder de Paula Pinto
committed
Fix #124: Fixing test for Python 2.
1 parent b029066 commit 14196b6

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

tests/unit/schema/test_schemas.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)