From 32434999f5158c6d9c08c668e50e0e3d533c14c2 Mon Sep 17 00:00:00 2001 From: Ben Thorner Date: Thu, 24 Mar 2022 15:50:06 +0000 Subject: [PATCH] Remove redundant header in provider test data X-Forwarded-For isn't used for anything since [^1]. [^1]: https://github.com/alphagov/notifications-api/pull/1315 --- tests/app/notifications/rest/test_callbacks.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/tests/app/notifications/rest/test_callbacks.py b/tests/app/notifications/rest/test_callbacks.py index 2b4dc2a60..26fc353b7 100644 --- a/tests/app/notifications/rest/test_callbacks.py +++ b/tests/app/notifications/rest/test_callbacks.py @@ -8,20 +8,14 @@ def firetext_post(client, data): return client.post( path='/notifications/sms/firetext', data=data, - headers=[ - ('Content-Type', 'application/x-www-form-urlencoded'), - ('X-Forwarded-For', '203.0.113.195, 70.41.3.18, 150.172.238.178') # fake IPs - ]) + headers=[('Content-Type', 'application/x-www-form-urlencoded')]) def mmg_post(client, data): return client.post( path='/notifications/sms/mmg', data=data, - headers=[ - ('Content-Type', 'application/json'), - ('X-Forwarded-For', '203.0.113.195, 70.41.3.18, 150.172.238.178') # fake IPs - ]) + headers=[('Content-Type', 'application/json')]) def dvla_post(client, data):