Browse Source

Fixed fileserver tests

Rafał Pitoń 11 years ago
parent
commit
07ce8f42c9
1 changed files with 3 additions and 2 deletions
  1. 3 2
      misago/core/tests/test_fileserver.py

+ 3 - 2
misago/core/tests/test_fileserver.py

@@ -32,12 +32,13 @@ class FileServerTests(TestCase):
     def test_send_header(self):
         """call to header response function returns HttpResponse"""
         with self.settings(MISAGO_SENDFILE_HEADER='X-Test'):
-            response = fileserver.make_header_response(__file__, 'text/python')
+            response = fileserver.make_header_response(
+                __file__, 'text/python', 9)
             self.assertTrue(isinstance(response, HttpResponse))
             self.assertEqual(response['X-Test'], __file__)
 
 
     def test_send_stream(self):
         """call to streaming response function returns StreamingHttpResponse"""
-        response = fileserver.make_stream_response(__file__, 'text/python')
+        response = fileserver.make_stream_response(__file__, 'text/python', 9)
         self.assertTrue(isinstance(response, StreamingHttpResponse))