@@ -189,24 +189,19 @@ def path(self):
189
189
return reverse ('sentry-new-project' , args = [self .team .slug ])
190
190
191
191
def test_admin_can_load (self ):
192
- with self .settings (SENTRY_ALLOW_PROJECT_CREATION = False , SENTRY_ALLOW_TEAM_CREATION = False ):
193
- self ._assertPerm (self .path , self .template , self .admin .username )
192
+ self ._assertPerm (self .path , self .template , self .admin .username )
194
193
195
194
def test_user_cannot_load (self ):
196
- with self .settings (SENTRY_ALLOW_PROJECT_CREATION = False , SENTRY_ALLOW_TEAM_CREATION = False ):
197
- self ._assertPerm (self .path , self .template , self .nobody .username , False )
195
+ self ._assertPerm (self .path , self .template , self .nobody .username , False )
198
196
199
197
def test_anonymous_cannot_load (self ):
200
- with self .settings (SENTRY_ALLOW_PROJECT_CREATION = False , SENTRY_ALLOW_TEAM_CREATION = False ):
201
- self ._assertPerm (self .path , self .template , None , False )
198
+ self ._assertPerm (self .path , self .template , None , False )
202
199
203
200
def test_public_creation_admin_can_load (self ):
204
- with self .settings (SENTRY_ALLOW_PROJECT_CREATION = True , SENTRY_ALLOW_TEAM_CREATION = True ):
205
- self ._assertPerm (self .path , self .template , self .admin .username )
201
+ self ._assertPerm (self .path , self .template , self .admin .username )
206
202
207
203
def test_public_anonymous_cannot_load (self ):
208
- with self .settings (SENTRY_ALLOW_PROJECT_CREATION = True , SENTRY_ALLOW_TEAM_CREATION = True ):
209
- self ._assertPerm (self .path , self .template , None , False )
204
+ self ._assertPerm (self .path , self .template , None , False )
210
205
211
206
212
207
class ManageProjectTest (PermissionBase ):
0 commit comments