Allow setting SVN URL from setup_for_attract CLI command

This commit is contained in:
2016-09-20 14:47:23 +02:00
parent 8145d698bd
commit 6066362a9b
5 changed files with 64 additions and 24 deletions

View File

@@ -3,6 +3,8 @@ from pillar.tests import PillarTestServer, AbstractPillarTest
from attract import AttractExtension
from attract.setup import setup_for_attract
MOCK_SVN_URL = 'svn://biserver/mocked'
class AttractTestServer(PillarTestServer):
def __init__(self, *args, **kwargs):
@@ -23,6 +25,8 @@ class AbstractAttractTest(AbstractPillarTest):
proj_id, project = AbstractPillarTest.ensure_project_exists(self, project_overrides)
with self.app.test_request_context():
attract_project = setup_for_attract(project['url'], replace=True)
attract_project = setup_for_attract(project['url'],
replace=True,
svn_url=MOCK_SVN_URL)
return proj_id, attract_project