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)
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)
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)
def _create_project(testdir, project_name): os.chdir(testdir) test_execution.root_path = testdir commands.createproject_command(project_name)