diff options
author | Nick <nick.guenther@polymtl.ca> | 2023-03-08 20:24:23 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-09 09:24:23 +0800 |
commit | 52e24167e5ebe0297f7630e9daecd6ffc9570a99 (patch) | |
tree | c91c05503a8f71856ff36e11ee0b3d447ce4253c /models/fixtures/repository.yml | |
parent | c5573dbc0fe2937a363813971a443277ccd580c3 (diff) | |
download | gitea-52e24167e5ebe0297f7630e9daecd6ffc9570a99.tar.gz gitea-52e24167e5ebe0297f7630e9daecd6ffc9570a99.zip |
Test renderReadmeFile (#23185)
Add test coverage to the important features of
[`routers.web.repo.renderReadmeFile`](https://github.com/go-gitea/gitea/blob/067b0c2664d127c552ccdfd264257caca4907a77/routers/web/repo/view.go#L273);
namely that:
- it can handle looking in docs/, .gitea/, and .github/
- it can handle choosing between multiple competing READMEs
- it prefers the localized README to the markdown README to the
plaintext README
- it can handle broken symlinks when processing all the options
- it uses the name of the symlink, not the name of the target of the
symlink
Diffstat (limited to 'models/fixtures/repository.yml')
-rw-r--r-- | models/fixtures/repository.yml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/models/fixtures/repository.yml b/models/fixtures/repository.yml index dd8facb7a3..32ba8744d4 100644 --- a/models/fixtures/repository.yml +++ b/models/fixtures/repository.yml @@ -1634,3 +1634,16 @@ is_private: true num_issues: 1 status: 0 + +- + id: 56 + owner_id: 2 + owner_name: user2 + lower_name: readme-test + name: readme-test + default_branch: master + is_empty: false + is_archived: false + is_private: true + status: 0 + num_issues: 0 |