Пример #1
0
 class Foo(object):
     bla = quiz.FieldDefinition('bla',
                                'my description',
                                args=fdict.EMPTY,
                                type=quiz.List[int],
                                is_deprecated=False,
                                deprecation_reason=None)
Пример #2
0
 def test_doc(self):
     schema = quiz.FieldDefinition('foo',
                                   'my description',
                                   type=quiz.List[str],
                                   args=fdict.EMPTY,
                                   is_deprecated=False,
                                   deprecation_reason=None)
     assert '[str]' in schema.__doc__
Пример #3
0
 def test_doc(self):
     schema = quiz.FieldDefinition(
         "foo",
         "my description",
         type=quiz.List[str],
         args=fdict.EMPTY,
         is_deprecated=False,
         deprecation_reason=None,
     )
     assert "[str]" in schema.__doc__