<s> import sys <EOL> import django <EOL> from django . conf import settings <EOL> if not settings . configured : <EOL> settings . configure ( <EOL> DATABASES = { <EOL> '<STR_LIT:default>' : { <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> } <EOL> } , <EOL> MIDDLEWARE_CLASSES = ( <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> ) , <EOL> INSTALLED_APPS = ( <EOL> '<STR_LIT>' , <EOL> ) , <EOL> SITE_ID = <NUM_LIT:1> , <EOL> SECRET_KEY = '<STR_LIT>' , <EOL> TEMPLATE_CONTEXT_PROCESSORS = ( <EOL> '<STR_LIT>' , <EOL> ) <EOL> ) <EOL> from django . test . utils import get_runner <EOL> def runtests ( ) : <EOL> if hasattr ( django , '<STR_LIT>' ) : <EOL> django . setup ( ) <EOL> apps = sys . argv [ <NUM_LIT:1> : ] or [ '<STR_LIT>' , ] <EOL> TestRunner = get_runner ( settings ) <EOL> test_runner = TestRunner ( verbosity = <NUM_LIT:1> , interactive = True , failfast = False ) <EOL> failures = test_runner . run_tests ( apps ) <EOL> sys . exit ( failures ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> runtests ( ) </s>
