def test_TarSCM_changes_get_changesauthor_default(self):
     home                = os.environ['HOME']
     os.environ['HOME']  = '/nir/va/na'
     c                   = changes()
     ca                  = c.get_changesauthor(self.cli)
     os.environ['HOME']  = home
     self.assertEqual(ca,'*****@*****.**')
예제 #2
0
 def test_TarSCM_changes_get_changesauthor_default(self):
     home                = os.environ['HOME']
     os.environ['HOME']  = '/nir/va/na'
     c                   = changes()
     ca                  = c.get_changesauthor(self.cli)
     os.environ['HOME']  = home
     self.assertEqual(ca, '*****@*****.**')
예제 #3
0
 def __init__(self):
     self.task_list      = []
     self.cleanup_dirs   = []
     self.helpers        = helpers()
     self.changes        = changes()
     self.scm_object     = None
     self.data_map       = None
 def test_TarSCM_changes_get_changesauthor_from_oscrc(self):
     tc_name             = inspect.stack()[0][3]
     home                = os.environ['HOME']
     os.environ['HOME']  = os.path.join(self.fixtures_dir,tc_name)
     c                   = changes()
     ca                  = c.get_changesauthor(self.cli)
     os.environ['HOME']  = home
     self.assertEqual(ca,'*****@*****.**')
예제 #5
0
 def test_TarSCM_changes_get_changesauthor_from_home_rc(self):
     tc_name             = inspect.stack()[0][3]
     home                = os.environ['HOME']
     os.environ['HOME']  = os.path.join(self.fixtures_dir, tc_name)
     c                   = changes()
     ca                  = c.get_changesauthor(self.cli)
     os.environ['HOME']  = home
     self.assertEqual(ca, '*****@*****.**')
예제 #6
0
    def __init__(self, args, task):
        # default settings
        self.scm = self.__class__.__name__
        # arch_dir - Directory which is used for the archive
        # e.g. myproject-2.0
        self.arch_dir = None
        self.repocachedir = None
        self.clone_dir = None
        self.lock_file = None

        # mandatory arguments
        self.args = args
        self.task = task
        self.url = args.url

        # optional arguments
        self.revision = args.revision

        # preparation of required attributes
        self.helpers = helpers()
        if self.args.changesgenerate:
            self.changes = changes()

        self._calc_repocachedir()
예제 #7
0
    def __init__(self,args,task):
        # default settings
        self.scm            = self.__class__.__name__
        # arch_dir - Directory which is used for the archive
        # e.g. myproject-2.0
        self.arch_dir            = None
        self.repocachedir   = None
        self.clone_dir      = None
        self.lock_file      = None

        # mandatory arguments
        self.args           = args
        self.task           = task
        self.url            = args.url

        # optional arguments
        self.revision       = args.revision

        # preparation of required attributes
        self.helpers        = helpers()
        if self.args.changesgenerate:
            self.changes    = changes()

        self._calc_repocachedir()
 def test_TarSCM_changes_get_changesauthor_from_args(self):
     c                   = changes()
     cli                 = copy.copy(self.cli)
     cli.changesauthor   = '*****@*****.**'
     ca                  = c.get_changesauthor(cli)
     self.assertEqual(ca,'*****@*****.**')
예제 #9
0
 def __init__(self):
     self.task_list      = []
     self.cleanup_dirs   = []
     self.helpers        = helpers()
     self.changes        = changes()
     self.scm_object     = None
예제 #10
0
 def test_TarSCM_changes_get_changesauthor_from_args(self):
     c                   = changes()
     cli                 = copy.copy(self.cli)
     cli.changesauthor   = '*****@*****.**'
     ca                  = c.get_changesauthor(cli)
     self.assertEqual(ca, '*****@*****.**')