Skip to content

Commit

Permalink
Linting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
fritzbrand committed Jan 17, 2024
1 parent 506b535 commit 134f327
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 20 deletions.
4 changes: 2 additions & 2 deletions home/export_content_pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
ContentPageIndex,
HomePage,
MessengerBlock,
VariationBlock,
ViberBlock,
SMSBlock,
USSDBlock,
VariationBlock,
ViberBlock,
WhatsappBlock,
)

Expand Down
2 changes: 1 addition & 1 deletion home/import_content_pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
ContentTrigger,
HomePage,
MessengerBlock,
ViberBlock,
SMSBlock,
USSDBlock,
ViberBlock,
WhatsappBlock,
)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Generated by Django 4.1.11 on 2024-01-08 10:24

import django.core.validators
from django.db import migrations, models
import wagtail.blocks
import wagtail.fields
from django.db import migrations, models


class Migration(migrations.Migration):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Generated by Django 4.1.11 on 2024-01-16 18:14

import django.core.validators
from django.db import migrations, models
import wagtail.blocks
import wagtail.fields
from django.db import migrations, models


class Migration(migrations.Migration):
Expand Down
5 changes: 2 additions & 3 deletions home/tests/page_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,10 @@
ContentQuickReply,
ContentTrigger,
MessengerBlock,
ViberBlock,
SMSBlock,
WhatsappBlock,
SMSBlock,
USSDBlock,
ViberBlock,
WhatsappBlock,
)

TPage = TypeVar("TPage", bound=Page)
Expand Down
10 changes: 5 additions & 5 deletions home/tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
VariationBlock,
)

from .page_builder import MBlk, MBody, SBlk, SBody, PageBuilder, WABlk, WABody
from .page_builder import MBlk, MBody, PageBuilder, SBlk, SBody, WABlk, WABody
from .utils import create_page


Expand Down Expand Up @@ -613,30 +613,30 @@ def test_platform_filtering(self, uclient):
"""
home_page = HomePage.objects.first()
main_menu = PageBuilder.build_cpi(home_page, "main-menu", "Main Menu")
page1 = PageBuilder.build_cp(
PageBuilder.build_cp(
parent=main_menu,
slug="main-menu-first-time-user",
title="main menu first time user",
bodies=[],
web_body=["Colour"],
)
page2 = PageBuilder.build_cp(
PageBuilder.build_cp(
parent=main_menu,
slug="health-info",
title="health info",
bodies=[
WABody("health info", [WABlk("*Health information* 🏥")]),
],
)
page3 = PageBuilder.build_cp(
PageBuilder.build_cp(
parent=main_menu,
slug="self-help",
title="self-help",
bodies=[
MBody("self-help", [MBlk("*Self-help programs* 🌬️")]),
],
)
page4 = PageBuilder.build_cp(
PageBuilder.build_cp(
parent=main_menu,
slug="self-help-sms",
title="self-help-sms",
Expand Down
6 changes: 2 additions & 4 deletions home/tests/test_content_import_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,11 @@
NextBtn,
PageBtn,
PageBuilder,
SBlk,
SBody,
VarMsg,
VBlk,
VBody,
SBlk,
SBody,
UBlk,
UBody,
WABlk,
WABody,
)
Expand Down
2 changes: 1 addition & 1 deletion home/tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
HomePage,
NextMessageButton,
PageView,
WhatsappBlock,
USSDBlock,
WhatsappBlock,
)

from .page_builder import PageBuilder, WABlk, WABody
Expand Down
2 changes: 0 additions & 2 deletions home/tests/test_page_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
PageBtn,
PageBuilder,
VarMsg,
SBlk,
SBody,
VBlk,
VBody,
WABlk,
Expand Down

0 comments on commit 134f327

Please sign in to comment.