1010"""
1111from constants import STATUS_CODES
1212from log import PRINT_REQ , PRINT_RES
13- from client import Client , client_app
13+ from client import Client , client_pipeline
1414from filters import auto_redirect_filter
1515
1616
@@ -53,7 +53,7 @@ class TestClient(Client):
5353 basically if anything other than 302 or 200 will result in a failure
5454 """
5555 def __init__ (self , pipeline = None , redirect = False ):
56- app = pipeline or client_app
56+ app = pipeline or client_pipeline ()
5757 if redirect :
5858 app = auto_redirect_filter (app )
5959 else :
@@ -71,8 +71,8 @@ def head(self, url, query_string=None, headers={}, status=None):
7171 kw ["assert_" ] = get_assert (status )
7272 return Client .head (self , url , ** kw )
7373
74- def post (self , url , query_string = None , post = {}, headers = {}, status = None ):
75- kw = dict (query_string = query_string , headers = headers , post = post )
74+ def post (self , url , query_string = None , post = {}, headers = {}, files = {}, status = None ):
75+ kw = dict (query_string = query_string , headers = headers , post = post , files = files )
7676 kw ["assert_" ] = get_assert (status )
7777 return Client .post (self , url , ** kw )
7878
0 commit comments