Skip to content

Commit 3960653

Browse files
committed
lint
1 parent b01ae6d commit 3960653

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

tests/functional/test_captcha.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def test_recaptcha_no_settings(self, submit_form, set_captcha_settings):
7373
transaction.commit()
7474
assert response.status_code == 500
7575
assert response.json()["message"] == (
76-
"No recaptcha private key configured. Go to path/to/site/@@recaptcha-settings " # noqa: E501
76+
"No recaptcha private key configured. Go to path/to/site/@@recaptcha-settings "
7777
"to configure."
7878
)
7979

@@ -197,7 +197,7 @@ def test_hcaptcha_no_settings(self, submit_form, set_captcha_settings):
197197
transaction.commit()
198198
assert response.status_code == 500
199199
assert response.json()["message"] == (
200-
"No hcaptcha private key configured. Go to path/to/site/@@hcaptcha-settings " # noqa: E501
200+
"No hcaptcha private key configured. Go to path/to/site/@@hcaptcha-settings "
201201
"to configure."
202202
)
203203

tests/functional/test_deserialize_block.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def _set_up(self, portal, document):
1414
def test_deserializer_cleanup_data_in_send_message_field(self, manager_request):
1515
new_blocks = deepcopy(self.document.blocks)
1616
new_blocks["form-id"]["send_message"] = (
17-
"<b onmouseover=\"alert('XSS testing!')\">click here</b><p><i>keep tags</i></p>" # noqa: E501
17+
"<b onmouseover=\"alert('XSS testing!')\">click here</b><p><i>keep tags</i></p>"
1818
)
1919
manager_request.patch(
2020
self.document_url,

tests/functional/test_email_processor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def test_email_not_sent_if_block_id_is_incorrect_or_not_present(self, submit_for
4343
res = response.json()
4444
assert response.status_code == 400
4545
assert res["message"] == (
46-
f'Block with @type "schemaForm" and id "unknown" not found in this context: {self.document_url}' # noqa: E501
46+
f'Block with @type "schemaForm" and id "unknown" not found in this context: {self.document_url}'
4747
)
4848

4949
response = submit_form(
@@ -56,7 +56,7 @@ def test_email_not_sent_if_block_id_is_incorrect_or_not_present(self, submit_for
5656
res = response.json()
5757
assert response.status_code == 400
5858
assert res["message"] == (
59-
f'Block with @type "schemaForm" and id "text-id" not found in this context: {self.document_url}' # noqa: E501
59+
f'Block with @type "schemaForm" and id "text-id" not found in this context: {self.document_url}'
6060
)
6161

6262
def test_email_not_sent_if_block_id_is_correct_but_form_data_missing(

0 commit comments

Comments
 (0)