~netlandish/django-wiki

88932e36c07edd5ead66e29ae71e805036f95c43 — Teury Diaz 5 years ago 39ad149
the url localhost of the tests is deleted
1 files changed, 1 insertions(+), 11 deletions(-)

M tests/plugins/links/test_urlize.py
M tests/plugins/links/test_urlize.py => tests/plugins/links/test_urlize.py +1 -11
@@ 102,10 102,6 @@ FIXTURE_POSITIVE_MATCHES = [
        'my.long.domain.example.com',
        EXPECTED_PARAGRAPH_TEMPLATE % ('http://my.long.domain.example.com', 'my.long.domain.example.com')
    ),
    (
        'localhost',
        '<p>localhosts</p>',
    ),

    # Test port section.



@@ 159,12 155,6 @@ FIXTURE_NEGATIVE_MATCHES = [
        '<p>.example .com</p>'
    ),

    # localhost as part of another word.
    (
        'localhosts',
        EXPECTED_PARAGRAPH_TEMPLATE % ('http://localhost', 'localhost') 
    ),

    # Invalid FQDNs.
    (
        'example-.com',


@@ 248,4 238,4 @@ class TestUrlizeExtension:
def test_makeExtension_return_value():
    extension = makeExtension()

    assert isinstance(extension, UrlizeExtension)
\ No newline at end of file
    assert isinstance(extension, UrlizeExtension)