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

gcruz 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 85fbcc61a [#8424] test fixes
85fbcc61a is described below

commit 85fbcc61a0fe0fb7937e7b225d723bfd88244154
Author: Guillermo Cruz <[email protected]>
AuthorDate: Tue May 3 09:37:10 2022 -0600

    [#8424] test fixes
---
 ForgeDiscussion/forgediscussion/tests/functional/test_forum.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ForgeDiscussion/forgediscussion/tests/functional/test_forum.py 
b/ForgeDiscussion/forgediscussion/tests/functional/test_forum.py
index 838ec0d6a..bc4a0373a 100644
--- a/ForgeDiscussion/forgediscussion/tests/functional/test_forum.py
+++ b/ForgeDiscussion/forgediscussion/tests/functional/test_forum.py
@@ -224,8 +224,8 @@ class TestForumMessageHandling(TestController):
         thd = FM.ForumThread.query.find().first()
         url = '/discussion/testforum/thread/%s/' % thd._id
         self.app.get(url)
-        # accessing a non-existent thread should return a 404
-        self.app.get('/discussion/testforum/thread/foobar/', status=404)
+        resp = self.app.get('/discussion/testforum/thread/foobar/', status=301)
+        assert('/discussion/testforum/' in resp.location)
 
     def test_posts(self):
         # not sure why this fails when set to root (to match self.user_id)

Reply via email to