Package: django-graphiql-debug-toolbar / 0.2.0-8
Metadata
Package | Version | Patches format |
---|---|---|
django-graphiql-debug-toolbar | 0.2.0-8 | 3.0 (quilt) |
Patch series
view the series filePatch | File delta | Description |
---|---|---|
tests Ignore error about using DDT.patch | (download) |
tests/settings.py |
2 2 + 0 - 0 ! |
tests: ignore error about using ddt We need now to explicetly tell the test setup that we want to use the Django Debug Toolbar. It's the sense of the testings. Otherwise the following error will thrown. SystemCheckError: System check identified some issues: ERRORS: ?: (debug_toolbar.E001) The Django Debug Toolbar can't be used with tests HINT: Django changes the DEBUG setting to False when running tests. By default the Django Debug Toolbar is installed because DEBUG is set to True. For most cases, you need to avoid installing the toolbar when running tests. If you feel this check is in error, you can set `DEBUG_TOOLBAR_CONFIG['IS_RUNNING_TESTS'] = False` to bypass this check. |
middleware.py import _HTML_TYPES from debug_toolbar.toolb.patch | (download) |
graphiql_debug_toolbar/middleware.py |
2 1 + 1 - 0 ! |
middleware.py: import _html_types from debug_toolbar.toolbar |
tests Set MIDDLEWARE configuration.patch | (download) |
tests/settings.py |
4 4 + 0 - 0 ! |
tests: set middleware configuration Newer Django is more picky about the configuration in settings.py WARNINGS: ?: (debug_toolbar.W001) debug_toolbar.middleware.DebugToolbarMiddleware is missing from MIDDLEWARE. HINT: Add debug_toolbar.middleware.DebugToolbarMiddleware to MIDDLEWARE. |
tests Set STATIC_ROOT STATIC_URL in settings.py.patch | (download) |
tests/settings.py |
3 3 + 0 - 0 ! |
tests: set static_root & static_url in settings.py Django is requiring these settings as otherwise the test call will fail with: |
tests Ignore the test_query for now.patch | (download) |
tests/test_middleware.py |
28 14 + 14 - 0 ! |
tests: ignore the test_query() for now It's a hack and workaround to ignore this test, but the upstream issue tracker hasn't a PR or report were we could take an temporary fix. https://github.com/flavors/django-graphiql-debug-toolbar/issues |
1