forgejo/modules
wxiaoguang 3c4153b195
[PORT] Refactor tests to prevent from unnecessary preparations (gitea#32398)
Some preparations are only used by a few tests, so to make the tests fast, they should only be prepared when they are used.

By the way, this PR splits PrepareTestEnv into small functions to make it simple.

---

Conflict resolution: Mostly magical and just re-pasting the code into
the right places.
Done differently: use `require.NoError` instead of `assert.NoError`.

(cherry picked from commit ec2d1593c269e06655525deb96f74b8094221b6f)
2024-11-07 23:02:10 +01:00
..
actions
activitypub tests: improve actvititypub integration test code 2024-11-01 22:39:49 +01:00
analyze
assetfs
auth
avatar
base
cache
charset refactor: remove redundant err declarations (#32381) 2024-11-05 09:33:15 +01:00
container
csv
emoji
eventsource
forgefed
generate
git Fix clean tmp dir (#32360) 2024-11-05 09:33:15 +01:00
gitgraph
gitrepo
graceful
hcaptcha
highlight [BUG] Make chroma match case-insenstive 2024-10-11 15:42:18 +02:00
hostmatcher
html
httpcache
httplib
indexer tests: improve actvititypub integration test code 2024-11-01 22:39:49 +01:00
issue/template [CHORE] Use forked binding library 2024-11-05 22:47:34 +01:00
json
keying
label
lfs Add new [lfs_client].BATCH_SIZE and [server].LFS_MAX_BATCH_SIZE config settings. (#32307) 2024-11-05 09:33:15 +01:00
log
markup Merge pull request '[gitea] week 2024-45 cherry pick (gitea/main -> forgejo)' (#5789) from algernon/wcp/2024-45 into forgejo 2024-11-06 08:57:43 +00:00
mcaptcha
metrics
migration Support migrating GitHub/GitLab PR draft status (#32242) 2024-10-20 09:24:25 +02:00
nosql
optional
options
packages Fix missing signature key error when pulling Docker images with SERVE_DIRECT enabled (#32365) 2024-11-05 09:33:15 +01:00
paginator
pprof
private
process
proxy
proxyprotocol
public
queue
recaptcha
references
regexplru
repository Fix created_unix for mirroring (#32342) 2024-11-05 09:39:23 +01:00
secret
session
setting Add new [lfs_client].BATCH_SIZE and [server].LFS_MAX_BATCH_SIZE config settings. (#32307) 2024-11-05 09:33:15 +01:00
sitemap
ssh
storage Add artifacts test fixture (#30300) 2024-11-05 09:33:15 +01:00
structs fix: add label to issues and PR labeled/unlabeled events 2024-11-04 10:41:11 +01:00
svg
sync
system
templates Merge pull request '[PORT] Replace DateTime with proper functions (gitea#32402)' (#5796) from gusted/forgejo-port-dateutils into forgejo 2024-11-05 21:46:29 +00:00
test
testlogger [PORT] Refactor tests to prevent from unnecessary preparations (gitea#32398) 2024-11-07 23:02:10 +01:00
timeutil [PORT] Replace DateTime with proper functions (gitea#32402) 2024-11-03 17:03:14 +01:00
translation i18n: Add dummy language for checking translation keys (#5785) 2024-11-05 09:59:04 +00:00
turnstile
typesniffer
updatechecker
uri
user
util [PORT] Refactor tests to prevent from unnecessary preparations (gitea#32398) 2024-11-07 23:02:10 +01:00
validation [CHORE] Use forked binding library 2024-11-05 22:47:34 +01:00
web [CHORE] Use forked binding library 2024-11-05 22:47:34 +01:00
webhook
zstd