Closed jinder1s closed 4 years ago
- Temporarily omit files from codecov with TODO comment pointing to ticket that will add coverage.
Can you elaborate more on what you mean by "add coverage"? @robrap Also, by omit files, you mean add plugins directory to omit in .coveragerc. Or should I comment out the patch section in codecov.yml?
@jinder1s: I mean adding tests.
You could add the pragma for no cover (search for ‘pragma’) to the if statement below to bump up coverage for the project.
38 | 4 | declared_middleware = getattr(settings, 'MIDDLEWARE', None) 39 | | if declared_middleware is None and django.VERSION[0] < 2: 40 | | declared_middleware = settings.MIDDLEWARE_CLASSES # Pre-Django 2 support
PR in edx-platform that tests this move: https://github.com/edx/edx-platform/pull/24678
previous location in edx-platform: https://github.com/edx/edx-platform/tree/master/openedx/core/djangoapps/plugins
This is mostly a drop in replacement, though with some link changes and I ran black on plugin directory. Link to working sandbox: https://plugless.sandbox.edx.org/
Description:
Describe in a couple of sentence what this PR adds
JIRA:
XXX-XXXX
Dependencies:
List dependencies on other outstanding PRs, issues, etc.
Merge deadline:
List merge deadline (if any)
Installation instructions:
List any non-trivial installation instructions.
Testing instructions:
Reviewers:
Merge checklist:
Post merge:
Author concerns:
List any concerns about this PR - inelegant solutions, hacks, quick-and-dirty implementations, concerns about migrations, etc.