-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add test for api team organization #24699
Conversation
@@ -58,7 +60,7 @@ func TestAPITeam(t *testing.T) { | |||
session = loginUser(t, user.Name) | |||
token = getTokenForLoggedInUser(t, session, auth_model.AccessTokenScopeAdminOrg) | |||
|
|||
org := unittest.AssertExistsAndLoadBean(t, &user_model.User{ID: 6}) | |||
org = unittest.AssertExistsAndLoadBean(t, &organization.Organization{ID: 6}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why user
-> organization
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why
user
->organization
?
The previous org
is a *User
, now since org
has been declared, so here we should use *Organization
as org.
Co-authored-by: Giteabot <[email protected]>
Backport #24699 by @lunny Co-authored-by: Lunny Xiao <[email protected]>
* upstream/main: (30 commits) Don't filter action runs based on state (go-gitea#24711) Add Go package registry (go-gitea#24687) Fix flash of unstyled content in action view page (go-gitea#24712) Clean up various avatar dimensions (go-gitea#24701) Remove the parallelizing when loading repo for dashboard (go-gitea#24705) Optimize actions list by removing an unnecessary `git` call (go-gitea#24710) Update cron-translations.yml (go-gitea#24708) Fix run list broken when trigger user deleted (go-gitea#24706) Remove Fomantic comment module (go-gitea#24703) Update to Alpine 3.18 (go-gitea#24700) fix minio storage iterator path (go-gitea#24691) Add status indicator on main home screen for each repo (go-gitea#24638) Add test for api team orgnization (go-gitea#24699) Improve button-ghost, remove tertiary button (go-gitea#24692) Add icon support for safari (go-gitea#24697) Improve avatar uploading / resizing / compressing, remove Fomantic card module (go-gitea#24653) Fix docs documenting invalid `@every` for `OLDER_THAN` cron settings (go-gitea#24695) Fix `organization` field being `null` in `GET /api/v1/teams/{id}` (go-gitea#24694) Use standard HTTP library to serve files (go-gitea#24693) Add `eslint-plugin-eslint-comments` (go-gitea#24690) ...
Backport go-gitea#24699 by @lunny Co-authored-by: Lunny Xiao <[email protected]> (cherry picked from commit 0ee51a5)
No description provided.