# Path: tests/settings.py
# SITE_ROOT = os.path.dirname(os.path.realpath(__file__))
# DEBUG = True
# TEMPLATE_DEBUG = True
# ROOT_URLCONF = "tests.urls"
# MIDDLEWARE_CLASSES = (
#     'django.middleware.common.CommonMiddleware',
#     'django.contrib.sessions.middleware.SessionMiddleware',
#     'django.middleware.csrf.CsrfViewMiddleware',
#     'django.contrib.auth.middleware.AuthenticationMiddleware',
#     "doac.middleware.AuthenticationMiddleware",
# )
# INSTALLED_APPS = [
#     "django.contrib.auth",
#     'django.contrib.contenttypes',
#     'django.contrib.sessions',
#     "doac",
#     "tests",
# ]
# DATABASES = {
#     "default": {
#         "ENGINE": "django.db.backends.sqlite3",
#         "NAME": "oauth2.db",
#     }
# }


from argparse import ArgumentParser
        from coverage import coverage
from django.conf import settings
from tests import settings as test_settings
from django.test.utils import get_runner
import sys
#!/usr/bin/env python


parser = ArgumentParser(description="Run the test suite.")

parser.add_argument(
    "--failfast",
    action="store_true",
    default=False,
    dest="failfast",
    help="Stop the test suite after the first failed test.",
)

parser.add_argument(

# Path: tests/settings.py
# SITE_ROOT = os.path.dirname(os.path.realpath(__file__))
# DEBUG = True
# TEMPLATE_DEBUG = True
# ROOT_URLCONF = "tests.urls"
# MIDDLEWARE_CLASSES = (
#     'django.middleware.common.CommonMiddleware',
#     'django.contrib.sessions.middleware.SessionMiddleware',
#     'django.middleware.csrf.CsrfViewMiddleware',
#     'django.contrib.auth.middleware.AuthenticationMiddleware',
#     "doac.middleware.AuthenticationMiddleware",
# )
# INSTALLED_APPS = [
#     "django.contrib.auth",
#     'django.contrib.contenttypes',
#     'django.contrib.sessions',
#     "doac",
#     "tests",
# ]
# DATABASES = {
#     "default": {
#         "ENGINE": "django.db.backends.sqlite3",
#         "NAME": "oauth2.db",
#     }
# }


# Path: runtests.py
from argparse import ArgumentParser
        from coverage import coverage
from django.conf import settings
from tests import settings as test_settings
from django.test.utils import get_runner
import sys

#!/usr/bin/env python


parser = ArgumentParser(description="Run the test suite.")

parser.add_argument(
    "--failfast",
    action="store_true",
    default=False,
    dest="failfast",
    help="Stop the test suite after the first failed test.",
)

parser.add_argument(

    "--no-coverage",