<s> import os , sys <EOL> from django . conf import settings <EOL> import django <EOL> DIRNAME = os . path . dirname ( __file__ ) <EOL> settings . configure ( DEBUG = True , <EOL> DATABASES = { <EOL> '<STR_LIT:default>' : { <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> } <EOL> } , <EOL> INSTALLED_APPS = ( '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , ) , <EOL> USE_TZ = True ) <EOL> django . setup ( ) <EOL> from django . test . runner import DiscoverRunner <EOL> test_runner = DiscoverRunner ( verbosity = <NUM_LIT:1> ) <EOL> failures = test_runner . run_tests ( [ '<STR_LIT>' , ] ) <EOL> if failures : <EOL> sys . exit ( failures ) </s>
