<s> from __future__ import unicode_literals <EOL> import logging <EOL> from django . test . client import RequestFactory , Client <EOL> from django . test . simple import DjangoTestSuiteRunner <EOL> import requests <EOL> def construct_patch ( self , path , data = '<STR_LIT>' , <EOL> content_type = '<STR_LIT>' , ** extra ) : <EOL> """<STR_LIT>""" <EOL> return self . generic ( '<STR_LIT>' , path , data , content_type , ** extra ) <EOL> def send_patch ( self , path , data = '<STR_LIT>' , content_type = '<STR_LIT>' , <EOL> follow = False , ** extra ) : <EOL> """<STR_LIT>""" <EOL> from django . test . client import Client <EOL> response = super ( Client , self ) . patch ( <EOL> path , data = data , content_type = content_type , ** extra ) <EOL> if follow : <EOL> response = self . _handle_redirects ( response , ** extra ) <EOL> return response <EOL> RequestFactory . patch = construct_patch <EOL> Client . patch = send_patch <EOL> class SilentDjangoTestSuiteRunner ( DjangoTestSuiteRunner ) : <EOL> """<STR_LIT>""" <EOL> def run_tests ( self , test_labels , extra_tests = None , ** kwargs ) : <EOL> """<STR_LIT>""" <EOL> logging . disable ( logging . CRITICAL ) <EOL> return super ( SilentDjangoTestSuiteRunner , self ) . run_tests ( <EOL> test_labels , extra_tests , ** kwargs ) <EOL> def mock_status_ok ( * args , ** kwargs ) : <EOL> resp = requests . Response ( ) <EOL> resp . status_code = <NUM_LIT:200> <EOL> resp . _content_consumed = True <EOL> return resp <EOL> from . test_api_middleware import * <EOL> from . test_app import * <EOL> from . test_auth import * <EOL> from . test_build import * <EOL> from . test_certificate import * <EOL> from . test_config import * <EOL> from . test_container import * <EOL> from . test_domain import * <EOL> from . test_healthcheck import * <EOL> from . test_hooks import * <EOL> from . test_key import * <EOL> from . test_limits import * <EOL> from . test_perm import * <EOL> from . test_release import * <EOL> from . test_scheduler import * <EOL> from . test_users import * </s>
