remove allow_discussion test, since it is unnecessary.
svn path=/plone.app.discussion/trunk/; revision=28023
This commit is contained in:
parent
356db660b0
commit
39e0faffc9
@ -37,10 +37,9 @@ class MigrationTest(PloneTestCase):
|
|||||||
|
|
||||||
def test_migrate_comment(self):
|
def test_migrate_comment(self):
|
||||||
|
|
||||||
# Create one comment
|
# Create a comment
|
||||||
talkback = self.discussion.getDiscussionFor(self.doc)
|
talkback = self.discussion.getDiscussionFor(self.doc)
|
||||||
self.doc.talkback.createReply('My Title', 'My Text', Creator='Jim')
|
self.doc.talkback.createReply('My Title', 'My Text', Creator='Jim')
|
||||||
#reply = talkback.objectValues()[0]
|
|
||||||
reply = talkback.getReplies()[0]
|
reply = talkback.getReplies()[0]
|
||||||
reply.setReplyTo(self.doc)
|
reply.setReplyTo(self.doc)
|
||||||
reply.creation_date = DateTime(2003, 3, 11, 9, 28, 6)
|
reply.creation_date = DateTime(2003, 3, 11, 9, 28, 6)
|
||||||
@ -56,7 +55,6 @@ class MigrationTest(PloneTestCase):
|
|||||||
|
|
||||||
# Make sure a conversation has been created
|
# Make sure a conversation has been created
|
||||||
self.failUnless('plone.app.discussion:conversation' in IAnnotations(self.doc))
|
self.failUnless('plone.app.discussion:conversation' in IAnnotations(self.doc))
|
||||||
|
|
||||||
conversation = IConversation(self.doc)
|
conversation = IConversation(self.doc)
|
||||||
|
|
||||||
# Check migration
|
# Check migration
|
||||||
@ -73,9 +71,6 @@ class MigrationTest(PloneTestCase):
|
|||||||
[{'comment': comment1, 'depth': 0, 'id': long(comment1.id)},]
|
[{'comment': comment1, 'depth': 0, 'id': long(comment1.id)},]
|
||||||
, list(conversation.getThreads()))
|
, list(conversation.getThreads()))
|
||||||
|
|
||||||
def test_migrate_allow_discussion(self):
|
|
||||||
pass
|
|
||||||
|
|
||||||
def test_migrate_nested_comments(self):
|
def test_migrate_nested_comments(self):
|
||||||
# Create some nested comments and migrate them
|
# Create some nested comments and migrate them
|
||||||
#
|
#
|
||||||
|
Loading…
x
Reference in New Issue
Block a user