@pytest.fixture()
def egap_reg(self):
    egap_schema = RegistrationSchema.objects.filter(name='EGAP Registration').order_by('-schema_version')[0]
    cos = RegistrationProviderFactory(_id='osf')
    return RegistrationFactory(schema=egap_schema, provider=cos)
@pytest.fixture()
def egap_reg(self):
    egap_schema = RegistrationSchema.objects.filter(name='EGAP Registration').order_by('-schema_version')[0]
    cos = RegistrationProviderFactory(_id='osf')
    return RegistrationFactory(schema=egap_schema, provider=cos)