Skip to content

Commit e00e33f

Browse files
committed
fix tests to match change in encode_html.
1 parent aa56649 commit e00e33f

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

tests/test_github_issues.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,13 @@ def test_github_issue_26():
4343
assert result == expect
4444

4545
def test_github_issue_27():
46-
test="""
47-
* Folders with ":" in their names are displayed with a forward slash "/" instead. (Filed as "#4581709":/test/link, which was considered "normal behaviour" - quote: "Please note that Finder presents the 'Carbon filesystem' view, regardless of the underlying filesystem.")
48-
49-
"""
46+
test = """* Folders with ":" in their names are displayed with a forward slash "/" instead. (Filed as "#4581709":/test/link, which was considered "normal behaviour" - quote: "Please note that Finder presents the 'Carbon filesystem' view, regardless of the underlying filesystem.")"""
5047
result = textile.textile(test)
5148
expect = """\t<ul>\n\t\t<li>Folders with &#8220;:&#8221; in their names are displayed with a forward slash &#8220;/&#8221; instead. (Filed as <a href="/test/link">#4581709</a>, which was considered &#8220;normal behaviour&#8221; &#8211; quote: &#8220;Please note that Finder presents the &#8216;Carbon filesystem&#8217; view, regardless of the underlying filesystem.&#8221;)</li>\n\t</ul>"""
5249
assert result == expect
5350

5451
def test_github_issue_28():
55-
test="""So here I am porting my ancient "newspipe":newspipe "front-end":blog/2006/09/30/0950 to "Snakelets":Snakelets and "Python":Python, and I've just trimmed down over 20 lines of "PHP":PHP down to essentially one line of "BeautifulSoup":BeautifulSoup retrieval:
52+
test = """So here I am porting my ancient "newspipe":newspipe "front-end":blog/2006/09/30/0950 to "Snakelets":Snakelets and "Python":Python, and I've just trimmed down over 20 lines of "PHP":PHP down to essentially one line of "BeautifulSoup":BeautifulSoup retrieval:
5653
5754
<pre>
5855
def parseWapProfile(self, url):
@@ -77,7 +74,7 @@ def parseWapProfile(self, url):
7774
width, height = soup(&#39;prf:screensize&#39;)[0].contents[0].split(&#39;x&#39;)
7875
except:
7976
width = height = None
80-
return {&#34;width&#34;: width, &#34;height&#34;: height}
77+
return {&quot;width&quot;: width, &quot;height&quot;: height}
8178
</pre>
8279
8380
\t<p>Of course there&#8217;s a lot more error handling to do (and useful data to glean off the <a href="XML"><span class="caps">XML</span></a>), but being able to cut through all the usual parsing crap is immensely gratifying.</p>""")

0 commit comments

Comments
 (0)