if 'test' in sys.argv:
    DATABASES = {'default': {'ENGINE': 'django.db.backends.sqlite3', 'NAME':
        os.path.join(os.path.dirname(__file__), 'test.db'), 'TEST_NAME': os
        .path.join(os.path.dirname(__file__), 'test.db')}}
Missing Table When Running Django Unittest with Sqlite3