def setUp(self): self.cli = TarSCM.cli() self.tasks = TarSCM.tasks() self.tests_dir = os.path.abspath(os.path.dirname(__file__)) self.tmp_dir = os.path.join(self.tests_dir, 'tmp') self.fixtures_dir = os.path.join(self.tests_dir, 'fixtures', self.__class__.__name__) self.cli.parse_args(['--outdir','.'])
def setUp(self): self.cli = TarSCM.cli() self.tasks = TarSCM.tasks() self.tests_dir = os.path.abspath(os.path.dirname(__file__)) self.tmp_dir = os.path.join(self.tests_dir, 'tmp') self.fixtures_dir = os.path.join(self.tests_dir, 'fixtures', self.__class__.__name__) self.cli.parse_args(['--outdir', '.']) os.environ['CACHEDIRECTORY'] = ''
def _prepare_cli(self): self.cli = TarSCM.cli() if not os.path.exists(self.outdir): os.makedirs(self.outdir) self.cli.parse_args(['--outdir', self.outdir, '--scm', 'git']) self.cli.snapcraft = True
def _prepare_cli(self): self.cli = TarSCM.cli() if not os.path.exists(self.outdir): os.makedirs(self.outdir) self.cli.parse_args(['--outdir',self.outdir,'--scm','git']) self.cli.snapcraft = True