<s> import sys <EOL> import os <EOL> from django . conf import settings , global_settings <EOL> APP_NAME = '<STR_LIT>' <EOL> def main ( ) : <EOL> sys . path . insert ( <NUM_LIT:0> , os . path . join ( os . path . dirname ( __file__ ) , '<STR_LIT:..>' ) ) <EOL> if not settings . configured : <EOL> settings . configure ( <EOL> INSTALLED_APPS = ( <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> APP_NAME , <EOL> ) , <EOL> DATABASES = { '<STR_LIT:default>' : { '<STR_LIT>' : '<STR_LIT>' } } , <EOL> MIDDLEWARE_CLASSES = ( <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> ) , <EOL> ROOT_URLCONF = '<STR_LIT>' , <EOL> MIGRATION_MODULES = { <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> } , <EOL> AUTH_USER_MODEL = os . environ . get ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> ) <EOL> try : <EOL> from django import setup <EOL> setup ( ) <EOL> except ImportError : <EOL> pass <EOL> from django . test . utils import get_runner <EOL> runner = get_runner ( settings ) ( ) <EOL> failures = runner . run_tests ( ( APP_NAME , ) ) <EOL> sys . exit ( failures ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> main ( ) </s>
