def inactive_schema(self):
     reg_schema = RegistrationSchema(name='Test Schema (Inactive)',
                                     schema_version=1,
                                     active=False)
     reg_schema.save()
     return reg_schema
 def out_dated_schema(self):
     reg_schema = RegistrationSchema(name='Prereg Challenge',
                                     schema_version=1)
     reg_schema.save()
     return reg_schema
 def invisible_schema(self):
     reg_schema = RegistrationSchema(name='Test Schema (Invisible)',
                                     schema_version=1,
                                     visible=False)
     reg_schema.save()
     return reg_schema
示例#4
0
 def schema(self):
     schema = RegistrationSchema(name='foo',
                                 schema={'foo': 42},
                                 schema_version=1)
     schema.save()
     return schema