tests: fixes test_utils and reverts delete repo message

This commit is contained in:
ievgenii vdovenko 2025-08-01 11:49:44 +02:00
parent 66fe2b2d73
commit 25d31cd588
3 changed files with 8 additions and 4 deletions

View file

@ -7567,8 +7567,8 @@ msgstr ""
msgid "Delete this repository"
msgstr ""
#: rhodecode/templates/admin/repos/repo_edit_advanced.mako:242
msgid "Warning: You are about to delete the repository. This action cannot be undone!"
#: rhodecode/templates/admin/repos/repo_edit_advanced.mako:249
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 ""
#: rhodecode/templates/admin/repos/repo_edit_advanced.mako:276

View file

@ -246,7 +246,11 @@
${_('Delete this repository')}
</button>
</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()}
</div>
</div>

View file

@ -293,7 +293,7 @@ def test_repo2db_mapper_adds_new_repos(request, backend):
for _repo in cleanup_repos:
del_result = RepoModel().delete(_repo, call_events=False)
Session().commit()
assert del_result is True
assert del_result.is_success is True
for _repo_group in cleanup_groups:
del_result = RepoGroupModel().delete(_repo_group, force_delete=True, call_events=False)