You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to write a regression test for a bug in iterate but I've hit a snag before I could even get started
def test_workflow(self):
import plone.api
from plone.app.iterate.dexterity.utils import get_baseline
parent = plone.api.content.create(
self.portal, 'Document', 'Parent')
child = plone.api.content.create(
parent, 'Document', 'Child')
# Make a checkout of the parent
parent_wc = ICheckinCheckoutPolicy(parent).checkout(parent.aq_parent)
self.assertEqual(get_baseline(parent_wc), parent)
This raises:
self.assertEqual(get_baseline(parent_wc), parent)
File "/usr/lib/python2.7/unittest/case.py", line 513, in assertEqual
assertion_func(first, second, msg=msg)
File "/usr/lib/python2.7/unittest/case.py", line 506, in _baseAssertEqual
raise self.failureException(msg)
AssertionError: None != <ATDocument at /plone/Parent>
Calling get_relations just returns []
Any ideas?
The text was updated successfully, but these errors were encountered:
Hi all
I'm trying to write a regression test for a bug in iterate but I've hit a snag before I could even get started
This raises:
Calling get_relations just returns []
Any ideas?
The text was updated successfully, but these errors were encountered: