Exemple #1
0
    def test_ref_type_unknown(self):
        """Test ref_type() function for unknown ref type"""

        self.assertEqual(GitRepo.ref_type('42'), 'unknown')
Exemple #2
0
    def test_ref_type_sha(self):
        """Test ref_type() function for sha ref"""

        self.assertEqual(GitRepo.ref_type(self.sha_ref), 'sha')
Exemple #3
0
    def test_ref_type_tag(self):
        """Test ref_type() function for tag ref"""

        self.assertEqual(GitRepo.ref_type(self.tag_ref), 'tag')
Exemple #4
0
    def test_ref_type_branch(self):
        """Test ref_type() function for branch ref"""

        self.assertEqual(GitRepo.ref_type(self.branch_ref), 'branch')