gitea/models/auth
wxiaoguang 0ed160ffea
Refactor tests (#33021)
1. fix incorrect tests, for example: BeanExists doesn't do assert and
shouldn't be used
2. remove unnecessary test functions
3. introduce DumpQueryResult to help to see the database rows during
test (at least I need it)

```
====== DumpQueryResult: SELECT * FROM action_runner_token ======
- # row[0]
  id: 1
  token: xeiWBL5kuTYxGPynHCqQdoeYmJAeG3IzGXCYTrDX
  owner_id: 0
...
```
2024-12-29 01:05:56 +00:00
..
access_token_scope_test.go
access_token_scope.go
access_token_test.go
access_token.go
auth_token.go
main_test.go
oauth2_list.go
oauth2_test.go Enable tenv and testifylint rules (#32852) 2024-12-15 10:41:29 +00:00
oauth2.go
session.go
source_test.go Refactor db package and remove unnecessary DumpTables (#32930) 2024-12-20 16:11:38 +00:00
source.go
twofactor.go
webauthn_test.go Refactor tests (#33021) 2024-12-29 01:05:56 +00:00
webauthn.go