diff options
| author | Tom Christie | 2012-09-28 16:01:02 +0100 |
|---|---|---|
| committer | Tom Christie | 2012-09-28 16:01:02 +0100 |
| commit | c2bbe628e6755d3613c39b79c1f80d921f6abc18 (patch) | |
| tree | 80304ab13889fd1264f23e0e6dc57f3c39a28e53 /rest_framework/runtests | |
| parent | 9f71f8e618555d888fff8edd322c440b49f331bc (diff) | |
| download | django-rest-framework-c2bbe628e6755d3613c39b79c1f80d921f6abc18.tar.bz2 | |
Fix coverage to not include migrations
Diffstat (limited to 'rest_framework/runtests')
| -rwxr-xr-x | rest_framework/runtests/runcoverage.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rest_framework/runtests/runcoverage.py b/rest_framework/runtests/runcoverage.py index 5f7fc876..ea2e3d45 100755 --- a/rest_framework/runtests/runcoverage.py +++ b/rest_framework/runtests/runcoverage.py @@ -46,7 +46,7 @@ def main(): for (path, dirs, files) in os.walk(project_dir): # Drop tests and runtests directories from the test coverage report - if os.path.basename(path) == 'tests' or os.path.basename(path) == 'runtests': + if os.path.basename(path) in ['tests', 'runtests', 'migrations']: continue # Drop the compat module from coverage, since we're not interested in the coverage |
