<s> import os <EOL> import sys <EOL> from os . path import dirname , abspath <EOL> from django . conf import settings <EOL> TEST_ROOT = os . path . dirname ( __file__ ) <EOL> PROJECT_ROOT = os . path . join ( TEST_ROOT , '<STR_LIT>' ) <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> SITE_ID = <NUM_LIT:1> , <EOL> COVERAGE_MODULE_EXCLUDES = [ <EOL> '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> ] , <EOL> ROOT_URLCONF = '<STR_LIT>' , <EOL> WSGI_APPLICATION = '<STR_LIT>' , <EOL> TEMPLATE_DIRS = ( os . path . join ( PROJECT_ROOT , "<STR_LIT>" ) , ) , <EOL> STATIC_URL = '<STR_LIT>' , <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> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> ] , <EOL> ) <EOL> from django . test . simple import DjangoTestSuiteRunner <EOL> from django_coverage . coverage_runner import CoverageRunner <EOL> def runtests ( * test_args ) : <EOL> if not test_args : <EOL> test_args = [ '<STR_LIT>' ] <EOL> parent = dirname ( abspath ( __file__ ) ) <EOL> example_project = os . path . join ( parent , '<STR_LIT>' ) <EOL> sys . path . insert ( <NUM_LIT:0> , example_project ) <EOL> runner = CoverageRunner ( ) <EOL> failures = runner . run_tests ( test_args , verbosity = <NUM_LIT:1> , interactive = True ) <EOL> sys . exit ( failures ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> runtests ( * sys . argv [ <NUM_LIT:1> : ] ) </s>
