Skip to content

Commit

Permalink
fixed formating
Browse files Browse the repository at this point in the history
  • Loading branch information
Mudiwa Matanda authored and Mudiwa Matanda committed Feb 1, 2024
1 parent 4b7f284 commit a50ab59
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion home/import_content_pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ def wagtail_format(self) -> dict[str, str]:

@dataclass(slots=True, frozen=True)
class ContentRow:
slug: str =
slug: str
page_id: int | None = None
parent: str = ""
web_title: str = ""
Expand Down
3 changes: 1 addition & 2 deletions home/tests/test_content_import_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -948,13 +948,12 @@ def test_invalid_wa_template_category(self, newcsv_impexp: ImportExport) -> None
== "Validation error: {'whatsapp_template_category': [\"Value 'Marketing' is not a valid choice.\"]}"
)


def test_import_required_fields(self, csv_impexp: ImportExport) -> None:
"""
Importing an CSV file with only the required feids shoud not break
"""

csv_bytes = csv_impexp.import_file("required_fields_sample.csv")
content = csv_impexp.export_content()
src, dst = csv_impexp.csvs2dicts(csv_bytes, content)
Expand Down

0 comments on commit a50ab59

Please sign in to comment.