Skip to content

Commit

Permalink
test attribute cleanup (was causing TestProjectModel.test_project to …
Browse files Browse the repository at this point in the history
…fail depending on test distribution/order)
  • Loading branch information
brondsem committed Jan 22, 2024
1 parent a50d921 commit 9eb2752
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Allura/allura/tests/unit/test_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

from allura.app import Application
from allura import model
from allura.lib import helpers as h
from allura.tests.unit import WithDatabase
from allura.tests.unit.patches import fake_app_patch
from allura.tests.unit.factories import create_project, create_app_config
Expand All @@ -36,8 +37,8 @@ def test_validate_mount_point(self):
mount_point = '1.2+foo_bar'
self.assertIsNone(app.validate_mount_point(mount_point))

app.relaxed_mount_points = True
self.assertIsNotNone(app.validate_mount_point(mount_point))
with h.push_config(app, relaxed_mount_points=True):
self.assertIsNotNone(app.validate_mount_point(mount_point))

def test_describe_permission(self):
class DummyApp(Application):
Expand Down

0 comments on commit 9eb2752

Please sign in to comment.