Changeset - 04c82eb326fb
[Not reviewed]
default
0 1 0
domruf - 10 years ago 2016-05-02 23:38:23
dominikruf@gmail.com
tests: avoid unicode in test case on Windows - the Windows command line can't easily handle "exotic" characters
1 file changed with 4 insertions and 1 deletions:
0 comments (0 inline, 0 general)
kallithea/tests/other/manual_test_vcs_operations.py
Show inline comments
 
@@ -106,16 +106,19 @@ def _add_files_and_push(vcs, DEST, **kwa
 
    cwd = path = jn(DEST)
 
    #added_file = jn(path, '%ssetupążźć.py' % _RandomNameSequence().next())
 
    added_file = jn(path, '%ssetup.py' % _RandomNameSequence().next())
 
    Command(cwd).execute('touch %s' % added_file)
 
    Command(cwd).execute('%s add %s' % (vcs, added_file))
 

	
 
    if os.name == 'nt':
 
        author_str = 'User <me@example.com>'
 
    else:
 
        author_str = 'User ǝɯɐᴎ <me@example.com>'
 
    for i in xrange(kwargs.get('files_no', 3)):
 
        cmd = """echo "added_line%s" >> %s""" % (i, added_file)
 
        Command(cwd).execute(cmd)
 
        author_str = 'User ǝɯɐᴎ <me@example.com>'
 
        if vcs == 'hg':
 
            cmd = """hg commit -m "committed new %s" -u "%s" "%s" """ % (
 
                i, author_str, added_file
 
            )
 
        elif vcs == 'git':
 
            cmd = """EMAIL="me@example.com" git commit -m "committed new %s" --author "%s" "%s" """ % (
0 comments (0 inline, 0 general)