def test_apply_solr_schema():
    # import_module('models')
    mc = ManagementCommands()
    mc.parse_args(['update_schema', '--bucket', 'student'])
    mc.schema_update()
    assert all(list(zip(*mc.robot.report))[1])
Example #2
0
 def create_index(cls):
     if Student.objects.bucket.get_properties().get('search_index') is None:
         mc = ManagementCommands()
         mc.parse_args(['update_schema', '--bucket', 'student'])
         mc.schema_update()
def tXXXXXXXXXXXXXXXXXXest_apply_solr_schema():
    mc = ManagementCommands()
    mc.parse_args(['update_schema', '--silent', '--bucket', 'all'])
    mc.schema_update()