@pytest.mark.django_db
def test_plugin_renders_absolute_links():
 context = get_jinja_context()
 page = create_page(eternal=True, visible_in_menu=True)
 absolute_link = ('/%s' % page.url)
 plugin = PageLinksPlugin({'show_all_pages': True})
 assert (absolute_link in plugin.render(context))

@ pytest . mark . django_db def test_plugin_renders_absolute_links ( ) : context = get_jinja_context ( ) page = create_page ( eternal = True , visible_in_menu = True ) absolute_link = ( '/%s' % page . url ) plugin = PageLinksPlugin ( { 'show_all_pages' : True } ) assert ( absolute_link in plugin . render ( context ) )
test that the plugin renders only absolute links .