We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94ea1be commit ca73f6cCopy full SHA for ca73f6c
tests/integration/org_project_test.go
@@ -14,8 +14,12 @@ import (
14
func TestOrgProjectAccess(t *testing.T) {
15
defer tests.PrepareTestEnv(t)()
16
17
+ oldDisabledRepoUnits := unit_model.DisabledRepoUnits
18
// disable repo project unit
19
unit_model.DisabledRepoUnits = []unit_model.Type{unit_model.TypeProjects}
20
+ defer func() {
21
+ unit_model.DisabledRepoUnits = oldDisabledRepoUnits
22
+ }()
23
24
// repo project, 404
25
req := NewRequest(t, "GET", "/user2/repo1/projects")
0 commit comments