These tests originate from Gitea, so may cause conflicts in the longer run. But they use the same pattern, so transitioning them to the helper is hopefully a benefit that offsets the risk. Signed-off-by: Gergely Nagy <forgejo@gergo.csillger.hu> (cherry picked from commit 2d475af49484bd428018e479fa35643f61a30426) (cherry picked from commit a99c17729c635398d3722da9da7d9cbe2b47c533)