Fix linting errors

This commit is contained in:
Neil Martinsen-Burrell 2023-05-17 15:13:48 -05:00
parent 135192fd9f
commit 125877c4af
No known key found for this signature in database
GPG key ID: 6A3C818CC10D0184
2 changed files with 2 additions and 7 deletions

View file

@ -1,5 +1,3 @@
from urllib.parse import urljoin
from django import template
from django.urls import reverse
@ -30,8 +28,5 @@ def public_site_url(url_path):
"""
base_url = settings.GETGOV_PUBLIC_SITE_URL
# join the two halves with a single slash
public_url ="/".join([
base_url.rstrip("/"),
url_path.lstrip("/")
])
public_url = "/".join([base_url.rstrip("/"), url_path.lstrip("/")])
return public_url

View file

@ -4,8 +4,8 @@ from django.conf import settings
from django.test import TestCase
from django.template import Context, Template
class TestTemplateTags(TestCase):
class TestTemplateTags(TestCase):
def _render_template(self, string, context=None):
"""Helper method to render a template given as a string.