Navigation Menu

Skip to content

Commit

Permalink
Merge branch 'master' into fix-heroku
Browse files Browse the repository at this point in the history
  • Loading branch information
tisto committed Feb 9, 2016
2 parents cd5f228 + b71f5e2 commit ae9d1a7
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/plone/restapi/tests/test_serializer_dexterity.py
Expand Up @@ -18,7 +18,17 @@ def test_document(self):
text=IRichText['text'].fromUnicode(u'<p>Some Text</p>'))

self.maxDiff = None
self.assertDictEqual(

# XXX: We use assertDictContainsSubset in order not to have the
# Plone 5 tests fail because the automatic ID generation for the
# stock 'Document' type works differently in Plone 5 than Plone 4.

# A better solution for this (to get stable test behavior across Plone
# versions) is to create our own FTIs for tests instead of using the
# stock types from Plone (which may be named the same, but behave
# differently).

self.assertDictContainsSubset(
{
'@context': 'http://www.w3.org/ns/hydra/context.jsonld',
'@id': 'http://localhost:55001/plone/document',
Expand Down

0 comments on commit ae9d1a7

Please sign in to comment.