mirror of
https://github.com/ansible/awx.git
synced 2026-02-26 15:36:04 -03:30
Remove git project configuration from project test fixtures
Having this in here causes us to go out and pull down the repo whenever we run a test, adds around 9 seconds per test on a good connection.. if we need real data in here, we should figure out how to get it locally
This commit is contained in:
@@ -106,8 +106,6 @@ def team_member(user, team):
|
|||||||
def project(instance, organization):
|
def project(instance, organization):
|
||||||
prj = Project.objects.create(name="test-proj",
|
prj = Project.objects.create(name="test-proj",
|
||||||
description="test-proj-desc",
|
description="test-proj-desc",
|
||||||
scm_type="git",
|
|
||||||
scm_url="https://github.com/jlaska/ansible-playbooks",
|
|
||||||
organization=organization
|
organization=organization
|
||||||
)
|
)
|
||||||
return prj
|
return prj
|
||||||
@@ -120,8 +118,6 @@ def project_factory(organization):
|
|||||||
except Project.DoesNotExist:
|
except Project.DoesNotExist:
|
||||||
prj = Project.objects.create(name=name,
|
prj = Project.objects.create(name=name,
|
||||||
description="description for " + name,
|
description="description for " + name,
|
||||||
scm_type="git",
|
|
||||||
scm_url="https://github.com/jlaska/ansible-playbooks",
|
|
||||||
organization=organization
|
organization=organization
|
||||||
)
|
)
|
||||||
return prj
|
return prj
|
||||||
|
|||||||
Reference in New Issue
Block a user