put more log messages to view what env returns

This commit is contained in:
venusbb
2017-07-12 13:49:20 +01:00
parent 19481cda02
commit a5cf8ff60f
2 changed files with 4 additions and 3 deletions

View File

@@ -351,7 +351,7 @@ def test_reject_invalid_ips(restrict_ip_sms_app):
assert exc_info.value.short_message == 'Unknown source IP address from the SMS provider'
@pytest.mark.xfail(reason='Currently not blocking invalid IPs', strict=True)
@pytest.mark.xfail(reason='Currently not blocking invalid senders', strict=True)
def test_illegitimate_ips(restrict_ip_sms_app):
with pytest.raises(AuthError) as exc_info:
restrict_ip_sms_app.get(
@@ -361,4 +361,4 @@ def test_illegitimate_ips(restrict_ip_sms_app):
]
)
assert exc_info.value.short_message == 'Unknown source IP address from the SMS provider'
assert exc_info.value.short_message == 'Unknown IP route not from known SMS provider'