Skip to content

Commit

Permalink
upgrade mf2py to 1.1.2 (unreleased)
Browse files Browse the repository at this point in the history
  • Loading branch information
snarfed committed Jul 24, 2018
1 parent e924378 commit 9c2c504
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion requirements.freeze.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ idna==2.6
Jinja2==2.10
lxml==3.7.3
MarkupSafe==1.0
mf2py==1.0.4
mf2py==1.1.2
mf2util==0.5.0
mox3==0.24.0
oauth2client==4.1.2
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ beautifulsoup4
humanize
jinja2>=2.10.0
lxml==3.7.3
mf2py>=1.0.4
mf2py>=1.1.2
mf2util>=0.5.0
oauth2client
requests>=2.10.0
Expand Down
14 changes: 8 additions & 6 deletions test/test_blog_webmention.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,13 +152,14 @@ def test_rel_canonical_different_domain(self):

html = """
<article class="h-entry"><p class="e-content">
<a href="http://bar.com/mention">this post</a>
i hereby <a href="http://foo.zz/post/1">mention</a>
</p></article>"""
self.expect_requests_get('http://bar.com/mention', html)

testutil.FakeSource.create_comment(
'http://foo.zz/post/1', 'foo.zz', 'http://foo.zz/',
'mentioned this in <a href="http://bar.com/mention">i hereby mention</a>. <br /> <a href="http://bar.com/mention">via bar.com</a>')
'mentioned this in <a href="http://bar.com/mention">bar.com/mention</a>. <br /> <a href="http://bar.com/mention">via bar.com</a>')
self.mox.ReplayAll()

resp = self.get_response('http://bar.com/mention', 'http://foo.zz/post/1')
Expand All @@ -177,16 +178,16 @@ def test_mention(self):
html = """\
<article class="h-entry"><p class="e-content">
<span class="p-name">my post</span>
foo
<a href="http://foo.com/post/1">this post</a>
<a href="http://bar.com/mention">this post</a>
<a href="http://foo.com/post/1">another post</a>
</p></article>"""
self.expect_requests_get('http://bar.com/reply', html)
self.expect_requests_get('http://bar.com/mention', html)
testutil.FakeSource.create_comment(
'http://foo.com/post/1', 'foo.com', 'http://foo.com/',
'mentioned this in <a href="http://bar.com/reply">my post</a>. <br /> <a href="http://bar.com/reply">via bar.com</a>')
'mentioned this in <a href="http://bar.com/mention">my post</a>. <br /> <a href="http://bar.com/mention">via bar.com</a>')
self.mox.ReplayAll()

resp = self.get_response()
resp = self.get_response('http://bar.com/mention')
self.assertEquals(200, resp.status_int, resp.body)

def test_domain_translates_to_lowercase(self):
Expand Down Expand Up @@ -271,6 +272,7 @@ def test_target_redirects(self):
def test_source_link_check_ignores_fragment(self):
html = """\
<article class="h-entry"><p class="e-content">
<a href="http://bar.com/reply">(permalink)</a>
<span class="p-name">my post</span>
<a href="http://foo.com/post/1"></a>
</p></article>"""
Expand Down
2 changes: 0 additions & 2 deletions test/test_publish.py
Original file line number Diff line number Diff line change
Expand Up @@ -951,7 +951,6 @@ def test_expand_target_urls_h_event_in_h_feed(self):
self.source.gr_source.create({
'url': 'http://foo.com/bar',
'verb': 'rsvp-yes',
'displayName': 'yes',
'object': [{'url': 'http://orig.domain/baz'},
{'url': 'https://fa.ke/a/b'}],
'objectType': 'activity',
Expand Down Expand Up @@ -1051,7 +1050,6 @@ def test_expand_target_urls_blacklisted_target(self):
self.source.gr_source.create({
'url': 'http://foo.com/bar',
'verb': 'rsvp-yes',
'displayName': 'yes',
'object': [{'url': 'http://fa.ke/homebrew-website-club'}],
'objectType': 'activity',
'content': '<span class="p-rsvp" value="yes">yes</span>\n<a class="u-in-reply-to" href="http://fa.ke/homebrew-website-club"></a>',
Expand Down

0 comments on commit 9c2c504

Please sign in to comment.