You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2020/04/13 17:43:29 UTC

[allura] 37/50: [#7935] Fixed wrong test

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

commit 708fb1ae8d9747d677d30bdf7dcca25667acf70d
Author: Fahri Korkmaz <f....@codesys.com>
AuthorDate: Thu Mar 5 17:11:45 2020 +0100

    [#7935] Fixed wrong test
---
 .../forgeimporters/tests/forge/test_discussion.py  | 24 +++++++++++-----------
 1 file changed, 12 insertions(+), 12 deletions(-)

diff --git a/ForgeImporters/forgeimporters/tests/forge/test_discussion.py b/ForgeImporters/forgeimporters/tests/forge/test_discussion.py
index cb4e861..8d4df31 100644
--- a/ForgeImporters/forgeimporters/tests/forge/test_discussion.py
+++ b/ForgeImporters/forgeimporters/tests/forge/test_discussion.py
@@ -1066,12 +1066,12 @@ class TestDiscussionImporter(TestCase):
         # Test with author attribute missing
         importer, app, thread, user, post = self.__init_add_posts_tests()
 
-        _json = {
+        _json = [{
             "subject": "foo",
             "text": "foo",
             "timestamp": "2020-01-29 22:42:58.478000",
             "attachments": []
-        }
+        }]
 
         self.__check_posts_exceptions(importer, thread, _json, app)
 
@@ -1079,12 +1079,12 @@ class TestDiscussionImporter(TestCase):
         # Test with subject attribute missing
         importer, app, thread, user, post = self.__init_add_posts_tests()
 
-        _json = {
+        _json = [{
             "author": "admin1",
             "text": "foo",
             "timestamp": "2020-01-29 22:42:58.478000",
             "attachments": []
-        }
+        }]
 
         self.__check_posts_exceptions(importer, thread, _json, app)
 
@@ -1092,12 +1092,12 @@ class TestDiscussionImporter(TestCase):
         # Test with text attribute missing
         importer, app, thread, user, post = self.__init_add_posts_tests()
 
-        _json = {
+        _json = [{
             "author": "admin1",
             "timestamp": "2020-01-29 22:42:58.478000",
             "subject": "foo",
             "attachments": []
-        }
+        }]
 
         self.__check_posts_exceptions(importer, thread, _json, app)
 
@@ -1105,12 +1105,12 @@ class TestDiscussionImporter(TestCase):
         # Test with timestamp attribute missing
         importer, app, thread, user, post = self.__init_add_posts_tests()
 
-        _json = {
+        _json = [{
             "author": "admin1",
             "text": "foo",
             "subject": "foo",
             "attachments": []
-        }
+        }]
 
         self.__check_posts_exceptions(importer, thread, _json, app)
 
@@ -1118,12 +1118,12 @@ class TestDiscussionImporter(TestCase):
         # Test with attachments attribute missing
         importer, app, thread, user, post = self.__init_add_posts_tests()
 
-        _json = {
+        _json = [{
             "author": "admin1",
             "text": "foo",
             "subject": "foo",
             "timestamp": "2020-01-29 22:42:58.478000"
-        }
+        }]
 
         self.__check_posts_exceptions(importer, thread, _json, app)
 
@@ -1131,7 +1131,7 @@ class TestDiscussionImporter(TestCase):
         # Test with url of attachments attribute missing
         importer, app, thread, user, post = self.__init_add_posts_tests()
 
-        _json = {
+        _json = [{
             "author": "admin1",
             "text": "foo",
             "subject": "foo",
@@ -1142,7 +1142,7 @@ class TestDiscussionImporter(TestCase):
                     "path": "path/to/attachment"
                 }
             ]
-        }
+        }]
 
         self.__check_posts_exceptions(importer, thread, _json, app)