def setUp(self):
        self.parser = cmds.create_parser()
        self.args = mock.Mock()

        self.locations = mock.Mock()
        self.locations.return_value = {
            'tree': tempfile.mkdtemp(),
            'image': '/dir/images',
            'fig.dist': os.path.join(cmds.ROOT, 'mkt-data', 'fig.yml.dist'),
            'fig': tempfile.mkstemp()[1]
        }
        cmds.locations = self.locations
    def setUp(self):
        self.parser = cmds.create_parser()
        self.args = mock.Mock()

        self.locations = mock.Mock()
        self.locations.return_value = {
            'tree': tempfile.mkdtemp(),
            'image': '/dir/images',
            'fig.dist': os.path.join(cmds.ROOT, 'mkt-data', 'fig.yml.dist'),
            'fig': tempfile.mkstemp()[1]
        }
        cmds.locations = self.locations
Пример #3
0
    def setUp(self):
        super(TestCommands, self).setUp()
        self.parser = cmds.create_parser()
        self.args = mock.Mock()

        self.locations = mock.Mock()
        self.locations.return_value = {
            'tree': tempfile.mkdtemp(),
            'image': '/dir/images',
            'fig.dist': os.path.join(cmds.ROOT, 'data', 'fig.yml.dist'),
            'fig': tempfile.mkstemp()[1]
        }
        cmds.locations = self.locations
        cmds.CONFIG_PATH = tempfile.mkstemp()[1]
        cmds.FIG_PATH = tempfile.mkstemp()[1]
Пример #4
0
    def setUp(self):
        self.parser = cmds.create_parser()
        self.args = mock.Mock()

        self.locations = mock.Mock()
        self.locations.return_value = {
            'tree': tempfile.mkdtemp(),
            'image': '/dir/images',
            'fig.dist': os.path.join(cmds.ROOT, 'data', 'fig.yml.dist'),
            'fig': tempfile.mkstemp()[1]
        }
        cmds.locations = self.locations
        cmds.CONFIG_PATH = tempfile.mkstemp()[1]
        cmds.FIG_PATH = tempfile.mkstemp()[1]
        cmds.BRANCHES = ['solitude']
        cmds.MIGRATIONS = ['solitude']
Пример #5
0
 def setUp(self):
     self.parser = create_parser()
Пример #6
0
 def setUp(self):
     self.parser = create_parser()