Commit 7ee0396c authored by Patrick Kimber's avatar Patrick Kimber

black

parent 382180e5
......@@ -19,8 +19,7 @@ class ArticleForm(ContentBaseForm):
def __init__(self, *args, **kwargs):
# default section fields for article does not include the slug field
section_fields = kwargs.pop(
"field_list",
["title", "description", "article_type", "image_size"]
"field_list", ["title", "description", "article_type", "image_size"]
)
super().__init__(*args, **kwargs)
for name in ("title", "description"):
......
......@@ -23,7 +23,7 @@ def test_article_empty_field_list(client):
create_url_name="compose.article.create",
field_list="",
),
expected_fields=["title", "description", "article_type", "image_size",]
expected_fields=["title", "description", "article_type", "image_size"],
)
......@@ -38,7 +38,7 @@ def test_article_field_list(client):
create_url_name="compose.article.create",
field_list="title description",
),
expected_fields=["title", "description",]
expected_fields=["title", "description"],
)
......@@ -53,5 +53,5 @@ def test_article_field_list_add_slug(client):
create_url_name="compose.article.create",
field_list="slug title description",
),
expected_fields=["slug", "title", "description",]
expected_fields=["slug", "title", "description"],
)
......@@ -24,7 +24,7 @@ def test_feature_empty_field_list(client):
create_url_name="compose.feature.create",
field_list="",
),
expected_fields=["title", "description", "style",]
expected_fields=["title", "description", "style"],
)
......@@ -39,5 +39,5 @@ def test_feature_field_list(client):
create_url_name="compose.feature.create",
field_list="title description",
),
expected_fields=["title", "description",]
expected_fields=["title", "description"],
)
......@@ -24,7 +24,7 @@ def test_header_empty_field_list(client):
create_url_name="compose.header.create",
field_list="",
),
expected_fields=["title", "style",]
expected_fields=["title", "style"],
)
......@@ -39,5 +39,5 @@ def test_header_field_list(client):
create_url_name="compose.header.create",
field_list="title",
),
expected_fields=["title",]
expected_fields=["title"],
)
......@@ -33,7 +33,7 @@ def test_sidebar_empty_field_list(client):
create_url_name="compose.sidebar.create",
field_list="",
),
expected_fields=["title"]
expected_fields=["title"],
)
......@@ -48,5 +48,5 @@ def test_sidebar_field_list(client):
create_url_name="compose.sidebar.create",
field_list="title",
),
expected_fields=["title",]
expected_fields=["title"],
)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment