Skip to content

Commit ce666eb

Browse files
committed
make linter happy
1 parent aaa757f commit ce666eb

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

manifests/python.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ tests/:
560560
django-poc: v1.10
561561
fastapi: v2.4.0
562562
flask-poc: v1.10
563-
Test_Blocking_client_ip_with_forwarded: v3.13.0.dev
563+
Test_Blocking_client_ip_with_forwarded: missing_feature
564564
Test_Blocking_request_body:
565565
'*': v1.16.1
566566
django-poc: v3.7.0.dev (is v1.10 but weblog use new SDK now)

tests/appsec/test_blocking_addresses.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,9 @@ class Test_Blocking_client_ip_with_forwarded:
7474
"""Test if blocking is supported on http.client_ip address"""
7575

7676
def setup_blocking(self):
77-
self.rm_req_block = weblog.get(headers={"Forwarded": "host=\"example.host\";by=2.2.2.2;proto=http;for=1.1.1.1:6543"})
77+
self.rm_req_block = weblog.get(
78+
headers={"Forwarded": 'host="example.host";by=2.2.2.2;proto=http;for=1.1.1.1:6543'}
79+
)
7880

7981
def test_blocking(self):
8082
"""Can block the request forwarded for the ip"""
@@ -83,7 +85,10 @@ def test_blocking(self):
8385
interfaces.library.assert_waf_attack(self.rm_req_block, rule="blk-001-001")
8486

8587
def setup_blocking_before(self):
86-
self.block_req2 = weblog.get("/tag_value/tainted_value_6512/200", headers={"Forwarded": "host=\"example.host\";by=2.2.2.2;proto=https;for=1.1.1.1"})
88+
self.block_req2 = weblog.get(
89+
"/tag_value/tainted_value_6512/200",
90+
headers={"Forwarded": 'host="example.host";by=2.2.2.2;proto=https;for=1.1.1.1'},
91+
)
8792

8893
def test_blocking_before(self):
8994
"""Test that blocked requests are blocked before being processed"""

0 commit comments

Comments
 (0)