Beispiel #1
0
def _create_project(testdir, project_name):
    os.chdir(testdir)
    # call(['golem', 'createproject', project_name])
    from golem.cli import commands
    from golem.core import test_execution
    test_execution.root_path = testdir
    commands.createproject_command(project_name)
Beispiel #2
0
 def __init__(self, testdir_fixture):
     self.testdir_fixture = testdir_fixture
     self.testdir = testdir_fixture.path
     self.name = TestUtils.random_numeric_string(6, 'project_')
     self.path = os.path.join(testdir_fixture.path, 'projects', self.name)
     self.settings = None
     session.testdir = self.testdir
     commands.createproject_command(self.name)
Beispiel #3
0
 def __init__(self, testdir_fixture):
     self.testdir_fixture = testdir_fixture
     self.testdir = testdir_fixture.path
     self.name = TestUtils.random_string(4, 'project_')
     self.path = os.path.join(testdir_fixture.path, 'projects', self.name)
     self.settings = None
     os.chdir(self.testdir)
     test_execution.root_path = self.testdir
     commands.createproject_command(self.name)
Beispiel #4
0
def _create_project(testdir, project_name):
    os.chdir(testdir)
    test_execution.root_path = testdir
    commands.createproject_command(project_name)