Skip to content

Commit

Permalink
linting and tidying
Browse files Browse the repository at this point in the history
  • Loading branch information
markj0hnst0n committed Jul 4, 2024
1 parent e3296ab commit 043f23a
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
1 change: 1 addition & 0 deletions mail/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ def serializer_choices(cls):
def get_class_attributes(cls):
return [attr for attr in dir(cls)]


class MailReadStatuses(TextChoices):
READ = "READ"
UNREAD = "UNREAD"
Expand Down
2 changes: 0 additions & 2 deletions mail/libraries/lite_to_edifact_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ class EdifactValidationError(Exception):
pass




def generate_lines_for_licence(licence: LicencePayload) -> Iterable[chieftypes._Record]:
"""Yield line tuples for a single licence, to use in a CHIEF message.
Expand Down
2 changes: 0 additions & 2 deletions mail/tests/test_licence_to_edifact.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ def test_single_siel(self):
result = licences_to_edifact(licences, 1234, "FOO")
trader = licences[0].data["organisation"]
now = timezone.now()
self.maxDiff = None
expected = (
"1\\fileHeader\\FOO\\CHIEF\\licenceData\\"
+ "{:04d}{:02d}{:02d}{:02d}{:02d}".format(now.year, now.month, now.day, now.hour, now.minute)
Expand Down Expand Up @@ -105,7 +104,6 @@ def test_update_edifact_file(self):

trader = licences[0].data["organisation"]
now = timezone.now()
self.maxDiff = None
expected = (
"1\\fileHeader\\FOO\\CHIEF\\licenceData\\"
+ "{:04d}{:02d}{:02d}{:02d}{:02d}".format(now.year, now.month, now.day, now.hour, now.minute)
Expand Down

0 comments on commit 043f23a

Please sign in to comment.