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
    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]
    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']
 def setUp(self):
     self.parser = create_parser()
Example #6
0
 def setUp(self):
     self.parser = create_parser()