Commit 486defa7 authored by Chris Lamb's avatar Chris Lamb
Browse files

Override test client kwargs, not replace.

parent 338a9866
......@@ -76,7 +76,7 @@ class TestCase(TestCase):
def assertGET(self, status_code, *args, **kwargs):
client_kwargs = {}
if kwargs.pop('is_ajax', False):
client_kwargs = {'HTTP_X_REQUESTED_WITH': 'XMLHttpRequest'}
client_kwargs['HTTP_X_REQUESTED_WITH'] = 'XMLHttpRequest'
return self.assertStatusCode(
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment