Changeset - a0ed1a63e889
[Not reviewed]
default
0 1 0
domruf - 8 years ago 2017-08-16 22:24:55
dominikruf@gmail.com
hg: drop test that used the illegal tag name '11'

Mercurial would fail with
RepositoryError: cannot use an integer as a name
if trying to create such a tag through a high level api.

We happen to use a low level api that doesn't perform that check. Still, the
tag is wrong.
1 file changed with 0 insertions and 2 deletions:
0 comments (0 inline, 0 general)
kallithea/tests/vcs/test_tags.py
Show inline comments
 
@@ -40,14 +40,12 @@ class TagsTestCaseMixin(_BackendTestMixi
 
        self.assertRaises(TagDoesNotExistError,
 
            self.repo.remove_tag, 'last-commit', user='evil joe')
 

	
 
    def test_name_with_slash(self):
 
        self.repo.tag('19/10/11', 'joe')
 
        self.assertTrue('19/10/11' in self.repo.tags)
 
        self.repo.tag('11', 'joe')
 
        self.assertTrue('11' in self.repo.tags)
 

	
 

	
 
# For each backend create test case class
 
for alias in SCM_TESTS:
 
    attrs = {
 
        'backend_alias': alias,
0 comments (0 inline, 0 general)