tests: fixes test_utils and reverts delete repo message
This commit is contained in:
parent
66fe2b2d73
commit
25d31cd588
3 changed files with 8 additions and 4 deletions
|
|
@ -7567,8 +7567,8 @@ msgstr ""
|
||||||
msgid "Delete this repository"
|
msgid "Delete this repository"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: rhodecode/templates/admin/repos/repo_edit_advanced.mako:242
|
#: rhodecode/templates/admin/repos/repo_edit_advanced.mako:249
|
||||||
msgid "Warning: You are about to delete the repository. This action cannot be undone!"
|
msgid "This repository will be renamed in a special way in order to make it inaccessible to RhodeCode Enterprise and its VCS systems. If you need to fully delete it from the file system, please do it manually, or with rhodecode-cleanup-repos command available in rhodecode-tools."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: rhodecode/templates/admin/repos/repo_edit_advanced.mako:276
|
#: rhodecode/templates/admin/repos/repo_edit_advanced.mako:276
|
||||||
|
|
|
||||||
|
|
@ -246,7 +246,11 @@
|
||||||
${_('Delete this repository')}
|
${_('Delete this repository')}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="field">
|
||||||
|
<span class="help-block">
|
||||||
|
${_('This repository will be renamed in a special way in order to make it inaccessible to RhodeCode Enterprise and its VCS systems. If you need to fully delete it from the file system, please do it manually, or with rhodecode-cleanup-repos command available in rhodecode-tools.')}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
${h.end_form()}
|
${h.end_form()}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -293,7 +293,7 @@ def test_repo2db_mapper_adds_new_repos(request, backend):
|
||||||
for _repo in cleanup_repos:
|
for _repo in cleanup_repos:
|
||||||
del_result = RepoModel().delete(_repo, call_events=False)
|
del_result = RepoModel().delete(_repo, call_events=False)
|
||||||
Session().commit()
|
Session().commit()
|
||||||
assert del_result is True
|
assert del_result.is_success is True
|
||||||
|
|
||||||
for _repo_group in cleanup_groups:
|
for _repo_group in cleanup_groups:
|
||||||
del_result = RepoGroupModel().delete(_repo_group, force_delete=True, call_events=False)
|
del_result = RepoGroupModel().delete(_repo_group, force_delete=True, call_events=False)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue