mirror of
https://github.com/go-vikunja/vikunja.git
synced 2026-07-16 14:52:35 -05:00
The project test port had added db.LoadFixtures() into the shared webHandlerTestV2.serve(), reloading fixtures before every request. That wiped runtime-created rows between requests within a test, breaking the create-then-read-back contract every v2 resource relies on (e.g. TestHumaTeam/Create/Public read its freshly-created team back and got 403). Revert that shared-harness change and isolate the project/archived tests the way the team and label tests do: each subtest builds its own handler via handlerFor, so it runs against freshly loaded fixtures (setupTestEnv reloads once per handler), while a create-then-read-back sequence reuses one handler within the subtest.
16 KiB
16 KiB