0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-22 23:33:15 -05:00
forgejo/modules/templates
Gusted 4c67023c7e
tests: improve actvititypub integration test code
- Make use of `test.MockVariableValue` to override variables for the
duration of the test.
- Don't needlessly call `onGiteaRun`, its only needed when a HTTP server
needs to be called by the code.
- When `onGiteaRun` is used, make use of the passed parameters, such as
the passed `*testing.T` variable and `*url.URL` (this also avoids
needing to serve the routers in the test code again).
- Use `(*url.URL).JoinPath` to craft new URLs.
- Don't override `setting.AppURL` & `setting.Database.LogSQL` when its
does not affect the test.
- Add empty fixture files for `FederatedUser` & `FederationHost` so they
are truncated and do not persist between tests.
2024-11-01 22:39:49 +01:00
..
eval Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
scopedtmpl Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
vars Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
base.go
dynamic.go
helper.go feat: combine review requests comments 2024-10-25 22:57:32 +02:00
helper_test.go Add codespell support and fix a good number of typos with its help (#3270) 2024-05-09 13:49:37 +00:00
htmlrenderer.go Enable more revive linter rules (#30608) 2024-04-28 15:39:00 +02:00
htmlrenderer_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00
mailer.go Add slogan config (#3752) 2024-06-07 17:12:48 +00:00
main_test.go tests: improve actvititypub integration test code 2024-11-01 22:39:49 +01:00
static.go
templates_bindata.go
util_avatar.go Lazy load avatar images (#32051) 2024-09-22 09:11:06 +02:00
util_dict.go
util_json.go
util_misc.go Avoid losing token when updating mirror settings (#30429) 2024-04-15 20:01:36 +02:00
util_render.go feat: combine review requests comments 2024-10-25 22:57:32 +02:00
util_render_test.go feat(ui): add more emoji and code block rendering in issues 2024-09-24 14:20:33 +02:00
util_slice.go
util_string.go
util_string_test.go
util_test.go Add testifylint to lint checks (#4535) 2024-07-30 19:41:10 +00:00