martin-bts / askbot-devel

Askbot is a Django/Python Q&A forum. **Contributors README**: https://github.com/ASKBOT/askbot-devel#how-to-contribute. Commercial hosting of Askbot and support are available at https://askbot.com
Other
0 stars 2 forks source link

Add askbot.deps.group_messaging.tests to tox #96

Closed sebastian-philipp closed 5 years ago

sebastian-philipp commented 5 years ago
diff --git a/askbot/deps/group_messaging/tests.py b/askbot/deps/group_messaging/tests.py
index 5d46476f7..3c8c4cda2 100644
--- a/askbot/deps/group_messaging/tests.py
+++ b/askbot/deps/group_messaging/tests.py
@@ -86,7 +86,7 @@ class ViewsTests(GroupMessagingTests):
     def get_view_context(self, view_class, data=None, user=None, method='GET'):
         spec = ['REQUEST', 'user']
         assert(method in ('GET', 'POST'))
-        spec.append(method)
+        spec += ['GET', 'POST']
         request = Mock(spec=spec)
         if method == 'GET':
             request.GET = data
martin-bts commented 5 years ago

I think we should. I applied this patch as part of my work for https://github.com/martin-bts/askbot-devel/issues/105. This patch will find its way into the main branch and then we can have a couple more test cases.

martin-bts commented 5 years ago

Did that and removed them again as Askbot is not using group_messaging and probably won't for some time