# -*- coding: utf-8 -*- # snapshottest: v1 - https://goo.gl/zC4yUc from __future__ import unicode_literals from snapshottest import Snapshot snapshots = Snapshot() snapshots[ "test_parser_converts_unmarked_links_to_hrefs 1" ] = '

Lorem ipsum test.com

' snapshots[ "test_parser_skips_links_in_inline_code_markdown 1" ] = "

Lorem ipsum http://test.com

" snapshots[ "test_parser_skips_links_in_inline_code_bbcode 1" ] = """

Lorem ipsum

http://test.com

""" snapshots[ "test_parser_skips_links_in_code_bbcode 1" ] = "
http://test.com
" snapshots[ "test_absolute_link_to_site_is_changed_to_relative_link 1" ] = '

clean_links step cleans example.com

' snapshots[ "test_absolute_link_to_site_without_schema_is_changed_to_relative_link 1" ] = '

clean_links step cleans example.com

' snapshots[ "test_absolute_link_with_path_to_site_is_changed_to_relative_link 1" ] = '

clean_links step cleans example.com/somewhere-something/

' snapshots[ "test_local_image_is_changed_to_relative_link 1" ] = '

clean_links step cleans example.com/media/img.png

'