Skip to content

Commit

Permalink
test: default change was intentional
Browse files Browse the repository at this point in the history
  • Loading branch information
pajod committed Aug 8, 2024
1 parent 52538ca commit ffa48b5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ def test_str_validation():

def test_str_to_addr_list_validation():
c = config.Config()
assert c.proxy_allow_ips == ["127.0.0.1", "::1"]
assert c.forwarded_allow_ips == ["127.0.0.1", "::1"]
c.set("forwarded_allow_ips", "127.0.0.1,192.0.2.1")
assert c.forwarded_allow_ips == ["127.0.0.1", "192.0.2.1"]
Expand All @@ -183,7 +184,7 @@ def test_str_to_addr_list_validation():

def test_str_to_list():
c = config.Config()
assert c.forwarder_headers == ["SCRIPT_NAME"]
assert c.forwarder_headers == ["SCRIPT_NAME", "PATH_INFO"]
c.set("forwarder_headers", "SCRIPT_NAME,REMOTE_USER")
assert c.forwarder_headers == ["SCRIPT_NAME", "REMOTE_USER"]
c.set("forwarder_headers", "")
Expand Down

0 comments on commit ffa48b5

Please sign in to comment.