witchie/tests
Denis Laxalde 0f6bd920c3 Replace ' by "'" before parsing HTML
Beautiful will does not parse HTML entities like `'` as we expect
and the previous logic of replacing this *after* HTML parsing occurred
did not produced expected results.

To illustrate this, we change data in "test_timeline" to include a
literal `'` as it sometimes occur in data returned by Mastodon API.
New HTML content is:

    <p>The computer can&apos;t tell you the emotional story [...] </p>

Beautiful will parse this as as:

    <p>The computer can&amp;apost tell you the emotional story [...] </p>

which is not what we expect.

We fix this by replacing `&apos;` *before* HTML parsing by Beautiful.
Since test data in "test_timeline" got updated we also add an extra
assertion checking that part of the content with a literal "'" is
(still) properly rendered.
2019-01-01 23:14:54 +01:00
..
__init__.py Add coding directive 2017-04-15 14:53:08 +02:00
test_api.py Simplify mocking in tests 2018-06-07 10:05:14 +02:00
test_auth.py Reimplement configuration to allow multiple logins 2018-01-02 12:24:32 +01:00
test_config.py Fix XDG_CONFIG_HOME tests 2018-04-17 21:09:26 +02:00
test_console.py Replace &apos; by "'" before parsing HTML 2019-01-01 23:14:54 +01:00
test_version.py Add __version__ to init file 2018-01-15 12:19:37 +01:00
utils.py Simplify mocking in tests 2018-06-07 10:05:14 +02:00