<s> import sys <EOL> import warnings <EOL> from django . conf import settings <EOL> from django . core . management import execute_from_command_line <EOL> if not settings . configured : <EOL> settings . configure ( <EOL> DATABASES = { <EOL> '<STR_LIT:default>' : { <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> } <EOL> } , <EOL> INSTALLED_APPS = [ <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> ] , <EOL> MIDDLEWARE_CLASSES = [ ] , <EOL> ) <EOL> warnings . simplefilter ( '<STR_LIT:default>' , DeprecationWarning ) <EOL> warnings . simplefilter ( '<STR_LIT:default>' , PendingDeprecationWarning ) <EOL> def runtests ( ) : <EOL> argv = sys . argv [ : <NUM_LIT:1> ] + [ '<STR_LIT:test>' ] + sys . argv [ <NUM_LIT:1> : ] <EOL> execute_from_command_line ( argv ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> runtests ( ) </s>
