mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-08-01 17:38:33 +00:00
test: Global OAuth should not be deleted
Expected to fail: Global (instance-wide) OAuth application should not be deleted, but it is
(cherry picked from commit 665d5f7317
)
This commit is contained in:
parent
ed15e04b33
commit
a3c917b1c1
2 changed files with 9 additions and 0 deletions
|
@ -296,4 +296,5 @@ func TestOrphanedOAuth2Applications(t *testing.T) {
|
|||
require.NoError(t, err)
|
||||
assert.EqualValues(t, 0, count)
|
||||
unittest.AssertExistsIf(t, false, &auth_model.OAuth2Application{ID: 1002})
|
||||
unittest.AssertExistsIf(t, true, &auth_model.OAuth2Application{ID: 1003})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue