Skip to content

Commit

Permalink
fix: code style/imports
Browse files Browse the repository at this point in the history
  • Loading branch information
rikuke committed Nov 29, 2023
1 parent 5fa0315 commit ca33899
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
1 change: 0 additions & 1 deletion backend/benefit/applications/services/ahjo_payload.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

from django.conf import settings
from django.urls import reverse
from django.utils.translation import gettext as _

from applications.models import Application, Attachment
from common.utils import hash_file
Expand Down
1 change: 0 additions & 1 deletion backend/benefit/applications/tests/test_ahjo_requests.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import uuid
from unittest.mock import patch

import pytest
import requests
import requests_mock
from django.urls import reverse
Expand Down
16 changes: 8 additions & 8 deletions backend/benefit/common/tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,13 +149,13 @@ def test_hash_file():


def test_encode_multipart_formdata():
fields = {'field1': 'value1', 'field2': 'value2'}
fields = {"field1": "value1", "field2": "value2"}
body_str, content_type = encode_multipart_formdata(fields)

assert body_str.startswith('--')
assert body_str.endswith('--\r\n')
assert 'field1' in body_str
assert 'value1' in body_str
assert 'field2' in body_str
assert 'value2' in body_str
assert content_type.startswith('multipart/form-data; boundary=')
assert body_str.startswith("--")
assert body_str.endswith("--\r\n")
assert "field1" in body_str
assert "value1" in body_str
assert "field2" in body_str
assert "value2" in body_str
assert content_type.startswith("multipart/form-data; boundary=")

0 comments on commit ca33899

Please sign in to comment.