Changeset - 369a646638f3
[Not reviewed]
default
0 3 0
Mads Kiilerich - 8 years ago 2018-02-07 00:43:34
mads@kiilerich.com
tests: fix some pyflakes warnings for vcs
3 files changed with 1 insertions and 5 deletions:
0 comments (0 inline, 0 general)
kallithea/tests/vcs/conf.py
Show inline comments
 
@@ -2,10 +2,7 @@
 
Unit tests configuration module for vcs.
 
"""
 
import os
 
import time
 
import hashlib
 
import tempfile
 
import datetime
 
import shutil
 
import uuid
 

	
kallithea/tests/vcs/test_git.py
Show inline comments
 
@@ -35,7 +35,7 @@ class GitRepositoryTest(unittest.TestCas
 
        repo_inject_path = TEST_GIT_REPO + '; echo "Cake";'
 
        with self.assertRaises(urllib2.URLError):
 
            # Should fail because URL will contain the parts after ; too
 
            urlerror_fail_repo = GitRepository(get_new_dir('injection-repo'), src_url=repo_inject_path, update_after_clone=True, create=True)
 
            GitRepository(get_new_dir('injection-repo'), src_url=repo_inject_path, update_after_clone=True, create=True)
 

	
 
        with self.assertRaises(RepositoryError):
 
            # Should fail on direct clone call, which as of this writing does not happen outside of class
kallithea/tests/vcs/test_inmemchangesets.py
Show inline comments
 
@@ -355,7 +355,6 @@ class BackendBaseTestCase(unittest.TestC
 
        """
 
        Returns newly created repository's directory.
 
        """
 
        backend = self.get_backend()
 
        key = '%s-%s' % (self.backend_alias, str(time.time()))
 
        repo_path = get_new_dir(key)
 
        return repo_path
0 comments (0 inline, 0 general)