##// END OF EJS Templates
tests: fixed svn import tests
marcink -
r522:babe2801 stable
parent child Browse files
Show More
@@ -39,7 +39,7 b" INVALID_CERTIFICATE_STDERR = '\\n'.join(["
39
39
40 @pytest.mark.parametrize('stderr,expected_reason', [
40 @pytest.mark.parametrize('stderr,expected_reason', [
41 (INVALID_CERTIFICATE_STDERR, 'INVALID_CERTIFICATE'),
41 (INVALID_CERTIFICATE_STDERR, 'INVALID_CERTIFICATE'),
42 ('svnrdump: E123456', 'UNKNOWN'),
42 ('svnrdump: E123456', 'UNKNOWN:svnrdump: E123456'),
43 ], ids=['invalid-cert-stderr', 'svnrdump-err-123456'])
43 ], ids=['invalid-cert-stderr', 'svnrdump-err-123456'])
44 @pytest.mark.xfail(sys.platform == "cygwin",
44 @pytest.mark.xfail(sys.platform == "cygwin",
45 reason="SVN not packaged for Cygwin")
45 reason="SVN not packaged for Cygwin")
@@ -55,8 +55,7 b' def test_import_remote_repository_certif'
55 remote.import_remote_repository({'path': 'path'}, 'url')
55 remote.import_remote_repository({'path': 'path'}, 'url')
56
56
57 expected_error_args = (
57 expected_error_args = (
58 'Failed to dump the remote repository from url.',
58 'Failed to dump the remote repository from url. Reason:{}'.format(expected_reason),)
59 expected_reason)
60
59
61 assert excinfo.value.args == expected_error_args
60 assert excinfo.value.args == expected_error_args
62
61
General Comments 0
You need to be logged in to leave comments. Login now