def setup_view(view, request, *args, **kwargs):
    view.request = request
    view.args = args
    view.kwargs = kwargs
    return view
Invalid DSM should not cause an error with --help or --version.
dataset/ETHPy150Open CenterForOpenScience/osf.io/admin_tests/utilities.py/setup_view--crossover with--dataset/ETHPy150Open pytest-dev/pytest-django/tests/test_manage_py_scan.py/test_django_project_found_invalid_settings_version