mirror of
https://gitcode.com/gitea/gitea.git
synced 2025-07-08 14:04:59 +08:00
Fixed assert statements. (#16089)
This commit is contained in:
integrations
api_admin_test.goapi_gpg_keys_test.goapi_issue_test.goapi_notification_test.goapi_oauth2_apps_test.goapi_org_test.goapi_pull_review_test.goapi_repo_tags_test.goapi_repo_teams_test.goapi_repo_topic_test.goapi_team_test.goorg_test.gorepo_commits_test.gorepo_test.go
models
attachment_test.goissue_stopwatch_test.goissue_watch_test.goissue_xref_test.gooauth2_application_test.goorg_test.gorepo_generate_test.gorepo_test.gotopic_test.gouser_heatmap_test.gouser_mail_test.gouser_openid_test.gouser_test.go
modules
auth/pam
base
git
indexer/code
lfs
log
markup/markdown
migrations
password
queue
repository
routers
services
@ -219,11 +219,11 @@ func TestOAuth2AuthorizationCode_GenerateRedirectURI(t *testing.T) {
|
||||
|
||||
redirect, err := code.GenerateRedirectURI("thestate")
|
||||
assert.NoError(t, err)
|
||||
assert.Equal(t, redirect.String(), "https://example.com/callback?code=thecode&state=thestate")
|
||||
assert.Equal(t, "https://example.com/callback?code=thecode&state=thestate", redirect.String())
|
||||
|
||||
redirect, err = code.GenerateRedirectURI("")
|
||||
assert.NoError(t, err)
|
||||
assert.Equal(t, redirect.String(), "https://example.com/callback?code=thecode")
|
||||
assert.Equal(t, "https://example.com/callback?code=thecode", redirect.String())
|
||||
}
|
||||
|
||||
func TestOAuth2AuthorizationCode_Invalidate(t *testing.T) {
|
||||
|
Reference in New Issue
Block a user