Changeset - 0b9aadc314de
[Not reviewed]
default
0 1 0
Søren Løvborg - 10 years ago 2015-08-13 15:29:59
sorenl@unity3d.com
tests: fix failing test_ip_restriction_git with some git versions
1 file changed with 3 insertions and 2 deletions:
0 comments (0 inline, 0 general)
kallithea/tests/other/manual_test_vcs_operations.py
Show inline comments
 
@@ -32,6 +32,7 @@ Original author and date, and relevant c
 

	
 
"""
 

	
 
import re
 
import tempfile
 
import time
 
from os.path import join as jn
 
@@ -520,8 +521,8 @@ class TestVCSOperations(BaseTestCase):
 
            Session().commit()
 
            clone_url = _construct_url(GIT_REPO)
 
            stdout, stderr = Command('/tmp').execute('git clone', clone_url)
 
            msg = ("""The requested URL returned error: 403""")
 
            assert msg in stderr
 
            # The message apparently changed in Git 1.8.3, so match it loosely.
 
            assert re.search(r'\b403\b', stderr)
 
        finally:
 
            #release IP restrictions
 
            for ip in UserIpMap.getAll():
0 comments (0 inline, 0 general)