1
1
mirror of https://github.com/go-gitea/gitea synced 2025-10-31 11:28:24 +00:00
Files
gitea/integrations/ssh_key_test.go
zeripath 1f0b797ddc Make the PushCreate test declarative (#11229)
Reduce the code duplication in the PushCreate test and switch
to a declarative format.

* Instead of explicitly creating the repository re-use functions from the other declarative tests and add comments
* Ensure that the test repository is deleted at the end of test
* Slightly reorder the sub-tests

Also reduce the code duplication in MergeFork and add some comments there too and make doGitCloneFail be self-contained.

Signed-off-by: Andrew Thornton art27@cantab.net
2020-04-28 09:32:23 +01:00

6.6 KiB