<s> import sys <EOL> from os import path <EOL> from django . conf import settings <EOL> PROJECT_DIR = path . dirname ( path . realpath ( __file__ ) ) <EOL> settings . configure ( <EOL> DATABASES = { <EOL> '<STR_LIT:default>' : { '<STR_LIT>' : '<STR_LIT>' } <EOL> } , <EOL> INSTALLED_APPS = [ <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> ] , <EOL> ROOT_URLCONF = '<STR_LIT>' , <EOL> TEMPLATE_DIRS = ( <EOL> path . join ( PROJECT_DIR , '<STR_LIT>' ) , <EOL> ) , <EOL> MIDDLEWARE_CLASSES = ( <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> ) , <EOL> BROKER_URL = '<STR_LIT>' , <EOL> CELERY_ALWAYS_EAGER = True , <EOL> ALLOWED_HOSTS = [ '<STR_LIT:*>' ] , <EOL> SITE_ID = <NUM_LIT:1> , <EOL> RECOMMENDS_TEST_REDIS = True , <EOL> RECOMMENDS_TEST_MONGO = True , <EOL> RECOMMENDS_TEST_RECSYS = True , <EOL> RECOMMENDS_STORAGE_MONGODB_FSYNC = True , <EOL> RECOMMENDS_TASK_RUN = True , <EOL> ) <EOL> def runtests ( * test_args ) : <EOL> import django <EOL> try : <EOL> django . setup ( ) <EOL> except AttributeError : <EOL> pass <EOL> import django . test . utils <EOL> runner_class = django . test . utils . get_runner ( settings ) <EOL> test_runner = runner_class ( verbosity = <NUM_LIT:1> , interactive = True ) <EOL> failures = test_runner . run_tests ( [ '<STR_LIT>' ] ) <EOL> sys . exit ( failures ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> runtests ( ) </s>
