Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

remove unneccessary test

  • Loading branch information...
commit 7b7bf8a6973fc729eddf726fc222c0a764705142 1 parent 8fdaa82
@gyst gyst authored
Showing with 5 additions and 34 deletions.
  1. +4 −0 README.rst
  2. +1 −34 src/plonesocial/microblog/tests/test_comments.py
View
4 README.rst
@@ -18,6 +18,10 @@ Plonesocial.microblog uses plone.app.discussion to store microblog status update
This component provides only the status update form and storage. To display the stored microblog messages, use `plonesocial.activitystream`_ in combination with plonesocial.microblog, or install the full `plonesocial.suite`_.
+Plonesocial.microblog provides a microblogging solution for Plone using core content types only, without any external dependencies. It does not require an external service and can be set up and run with a normal Plone buildout configuration.
+
+This simplicity also has its downside: this native solution will not be as scalable as a solution that uses an external service. Take a look at the jarn.xmpp.* or collective.kwetter solutions for large-scale microblogging in Plone with very many users. The performance ceiling is as yet untested.
+
Plonesocial
===========
View
35 src/plonesocial/microblog/tests/test_comments.py
@@ -1,20 +1,16 @@
import unittest2 as unittest
-#from zope import interface
-from zope.component import createObject, queryUtility
+from zope.component import createObject
from Acquisition import aq_base, aq_parent
from Products.CMFCore.utils import getToolByName
from plone.app.testing import TEST_USER_ID, setRoles
-from plone.registry.interfaces import IRegistry
from plonesocial.microblog.testing import\
PLONESOCIAL_MICROBLOG_INTEGRATION_TESTING
from plone.app.discussion.interfaces import IConversation
from plone.app.discussion.interfaces import IComment
-from plone.app.discussion.interfaces import IDiscussionSettings
-#from plone.app.discussion.interfaces import IDiscussionLayer
class TestInstall(unittest.TestCase):
@@ -24,11 +20,7 @@ class TestInstall(unittest.TestCase):
def setUp(self):
self.app = self.layer['app']
self.portal = self.layer['portal']
-
setRoles(self.portal, TEST_USER_ID, ['Manager'])
-# interface.alsoProvides(
-# self.portal.REQUEST, IDiscussionLayer)
-
typetool = self.portal.portal_types
typetool.constructContent('Document', self.portal, 'doc1')
self.typetool = typetool
@@ -64,28 +56,3 @@ def test_parent_statusupdate(self):
aq_base(self.portal))
self.assertEqual(comment.__parent__.__parent__,
self.portal)
-
- def test_add_comment_does_not_add_statusupdate(self):
- # Allow discussion
- registry = queryUtility(IRegistry)
- settings = registry.forInterface(IDiscussionSettings)
- settings.globally_enabled = True
-
- # attach and initialize microblog container
- microblog = IConversation(self.portal)
- comment = createObject('plone.Comment')
- comment.text = 'Comment text'
- new_id = microblog.addComment(comment)
-
- # do a 'vanilla' document reply
- conversation = IConversation(self.portal.doc1)
- comment = createObject('plone.Comment')
- comment.text = 'Comment text'
- new_id = conversation.addComment(comment)
- self.assertTrue(IComment.providedBy(conversation[new_id]))
- self.assertEqual(aq_base(conversation[new_id].__parent__),
- aq_base(conversation))
- self.assertEqual(conversation.total_comments, 1)
-
- # we should have only the original first status update
- self.assertEqual(microblog.total_comments, 1)
Please sign in to comment.
Something went wrong with that request. Please try again.