Skip to content

Commit 343e500

Browse files
committed
Remove unused settings in tests
1 parent db36080 commit 343e500

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

tests/sentry/web/frontend/tests.py

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -189,24 +189,19 @@ def path(self):
189189
return reverse('sentry-new-project', args=[self.team.slug])
190190

191191
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)
194193

195194
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)
198196

199197
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)
202199

203200
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)
206202

207203
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)
210205

211206

212207
class ManageProjectTest(PermissionBase):

0 commit comments

Comments
 (0)