##// END OF EJS Templates
fix(tests): added ability for test to get an up-to-date version mercurial.
ilin.s -
r5653:11c8ab5c tip default
parent child Browse files
Show More
@@ -21,6 +21,7 Test suite for making push/pull operatio
21 21 """
22 22
23 23 import pytest
24 from importlib.metadata import version
24 25
25 26 from rhodecode.model.meta import Session
26 27 from rhodecode.model.settings import SettingsModel
@@ -65,7 +66,8 class TestVCSOperationsOnUsingBadClient(
65 66 # push fails repo is locked by other user !
66 67 push_url = rcstack.repo_clone_url(HG_REPO)
67 68 stdout, stderr = _add_files_and_push("hg", tmpdir.strpath, clone_url=push_url)
68 msg = "Your hg client (version=mercurial/proto-1.0 (Mercurial 6.7.4)) is forbidden by security rules"
69 current_version = version('mercurial')
70 msg = f"Your hg client (version=mercurial/proto-1.0 (Mercurial {current_version})) is forbidden by security rules"
69 71 assert msg in stderr
70 72
71 73 def test_push_with_bad_client_repo_by_other_user_git(self, rcstack, tmpdir):
General Comments 0
You need to be logged in to leave comments. Login now