Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix unit test failure triggered by newer versions of mf2py or BS4 or ...
problem is that explicit p-name includes `<img>` `src` value, but implicit doesn't. background in microformats/microformats2-parsing#35 etc. ``` ====================================================================== FAIL: test_activitypub_create_author_only_url (tests.test_webmention.WebmentionTest) Mf2 author property is just a URL. We should run full authorship. ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/ryan/src/bridgy-fed/local/lib/python2.7/site-packages/mock/mock.py", line 1305, in patched return func(*args, **keywargs) File "tests/test_webmention.py", line 383, in test_activitypub_create_author_only_url self.assert_equals(repost_as2, kwargs['json']) File "/Users/ryan/src/bridgy-fed/local/lib/python2.7/site-packages/oauth_dropins/webutil/testutil.py", line 182, in assert_equals %s""" % (msg, ''.join(e.args), expected, actual)) AssertionError: None: [actor] [name] u'Ms. \u2615 Baz' != u'Ms. \u2615 Baz http://orig/pic' - Ms. \u2615 Baz + Ms. \u2615 Baz http://orig/pic Expected value: {u'@context': u'https://www.w3.org/ns/activitystreams', u'actor': {u'icon': ({u'type': u'Image', u'url': u'http://orig/pic'},), u'id': u'http://localhost/orig', u'image': ({u'type': u'Image', u'url': u'http://orig/pic'},), u'name': u'Ms. \u2615 Baz', u'preferredUsername': u'orig', u'type': u'Person', u'url': u'http://orig'}, u'cc': [u'https://www.w3.org/ns/activitystreams#Public', u'http://orig/author', u'http://orig/recipient', u'http://orig/bystander'], u'id': u'http://a/repost', u'name': u'reposted!', u'object': u'tag:orig,2017:as2', u'type': u'Announce', u'url': u'http://a/repost'} Actual value: {u'@context': u'https://www.w3.org/ns/activitystreams', u'actor': {u'icon': [{u'type': u'Image', u'url': u'http://orig/pic'}], u'id': u'http://localhost/orig', u'image': [{u'type': u'Image', u'url': u'http://orig/pic'}], u'name': u'Ms. \u2615 Baz http://orig/pic', u'preferredUsername': u'orig', u'type': u'Person', u'url': u'http://orig'}, u'cc': [u'https://www.w3.org/ns/activitystreams#Public', u'http://orig/author', u'http://orig/recipient', u'http://orig/bystander'], u'id': u'http://a/repost', u'name': u'reposted!', u'object': u'tag:orig,2017:as2', u'type': u'Announce', u'url': u'http://a/repost'} ```
- Loading branch information