Changeset - e2e5140704fc
[Not reviewed]
default
0 3 0
Mads Kiilerich - 6 years ago 2019-08-18 20:27:50
mads@kiilerich.com
tests: drop some stray print statements
3 files changed with 0 insertions and 5 deletions:
0 comments (0 inline, 0 general)
kallithea/tests/models/test_diff_parsers.py
Show inline comments
 
@@ -291,13 +291,12 @@ class TestDiffLib(TestController):
 
        assert not chunks[0]
 
        #from pprint import pprint; pprint(chunks[1])
 
        l = ['\n']
 
        for d in chunks[1]:
 
            l.append('%(action)-7s %(new_lineno)3s %(old_lineno)3s %(line)r\n' % d)
 
        s = ''.join(l)
 
        print s
 
        assert s == r'''
 
context ... ... u'@@ -51,6 +51,13 @@\n'
 
unmod    51  51 u'<u>\t</u>begin();\n'
 
unmod    52  52 u'<u>\t</u>\n'
 
add      53     u'<u>\t</u>int foo;<u class="cr"></u>\n'
 
add      54     u'<u>\t</u>int bar; <u class="cr"></u>\n'
kallithea/tests/models/test_repo_groups.py
Show inline comments
 
@@ -49,15 +49,12 @@ class TestRepoGroups(TestController):
 
        Checks the path for existence !
 
        """
 
        path = [TESTS_TMP_PATH] + list(path)
 
        path = os.path.join(*path)
 
        return os.path.isdir(path)
 

	
 
    def _check_folders(self):
 
        print os.listdir(TESTS_TMP_PATH)
 

	
 
    def __delete_group(self, id_):
 
        RepoGroupModel().delete(id_)
 

	
 
    def test_create_group(self):
 
        g = fixture.create_repo_group(u'newGroup')
 
        Session().commit()
kallithea/tests/other/test_vcs_operations.py
Show inline comments
 
@@ -398,13 +398,12 @@ class TestVCSOperations(TestController):
 
        Session().commit()
 

	
 
        dest_dir = _get_tmp_dir()
 
        stdout, stderr = Command(TESTS_TMP_PATH).execute(vt.repo_type, 'init', dest_dir)
 

	
 
        clone_url = vt.repo_url_param(webserver, vt.repo_name)
 
        print (vt, clone_url)
 
        stdout, stderr = Command(dest_dir).execute(vt.repo_type, 'pull', clone_url)
 

	
 
        if vt.repo_type == 'git':
 
            assert 'FETCH_HEAD' in stderr
 
        elif vt.repo_type == 'hg':
 
            assert 'new changesets' in stdout
0 comments (0 inline, 0 general)