This is an automated email from the ASF dual-hosted git repository.

brondsem pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/allura.git


The following commit(s) were added to refs/heads/master by this push:
     new 9eb2752e3 test attribute cleanup (was causing 
TestProjectModel.test_project to fail depending on test distribution/order)
9eb2752e3 is described below

commit 9eb2752e3125172016741390f19bae3171aaf31f
Author: Dave Brondsema <dbronds...@slashdotmedia.com>
AuthorDate: Mon Jan 22 13:20:06 2024 -0500

    test attribute cleanup (was causing TestProjectModel.test_project to fail 
depending on test distribution/order)
---
 Allura/allura/tests/unit/test_app.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/Allura/allura/tests/unit/test_app.py 
b/Allura/allura/tests/unit/test_app.py
index e7d0fbd79..18b7eafec 100644
--- a/Allura/allura/tests/unit/test_app.py
+++ b/Allura/allura/tests/unit/test_app.py
@@ -19,6 +19,7 @@ from unittest import TestCase
 
 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
@@ -36,8 +37,8 @@ class TestApplication(TestCase):
         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):

Reply via email to