Beispiel #1
0
def an_scm_service():
    scm_service = models.SCMService(scm_service_type="bitbucket",
                                    server_url="www.example.com")
    with username_on_model(models.SCMService, "initial"):
        scm_service.save()

    return scm_service
Beispiel #2
0
def deactivated_scm_service():
    scm_service = models.SCMService(scm_service_type="bitbucket 2",
                                    server_url="www.example.org")
    scm_service.deleted = True
    with username_on_model(models.SCMService, "initial"):
        scm_service.save()

    return scm_service
Beispiel #3
0
def another_scm_service():
    scm_service = models.SCMService(scm_service_type='bitbucket', server_url='www.bitbucket.com')
    with username_on_model(models.SCMService, 'initial'):
        scm_service.save()

    return scm_service