<s> import os <EOL> import unittest <EOL> if not '<STR_LIT>' in os . environ : <EOL> os . environ [ '<STR_LIT>' ] = '<STR_LIT>' <EOL> from django . conf import settings <EOL> from django . db import connection <EOL> from django . test . utils import setup_test_environment <EOL> from django . test . utils import teardown_test_environment <EOL> from django . utils . importlib import import_module <EOL> TEST_MODULES = [ "<STR_LIT>" ] <EOL> def run_tests ( ) : <EOL> setup_test_environment ( ) <EOL> db_name = settings . DATABASE_NAME <EOL> suite = unittest . TestSuite ( ) <EOL> for module_name in TEST_MODULES : <EOL> module = import_module ( module_name ) <EOL> suite . addTest ( unittest . defaultTestLoader . loadTestsFromModule ( module ) ) <EOL> connection . creation . create_test_db ( ) <EOL> unittest . TextTestRunner ( ) . run ( suite ) <EOL> connection . creation . destroy_test_db ( db_name ) <EOL> teardown_test_environment ( ) <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> run_tests ( ) </s>
