fix: remove *_test.py

This commit is contained in:
Anurag Mishra 2019-06-13 16:53:03 +05:30
parent a8ec5d6b2f
commit 376ba5392e

View file

@ -441,7 +441,7 @@ def run_tests(context, app=None, module=None, doctype=None, test=(),
if coverage:
# Generate coverage report only for app that is being tested
source_path = os.path.join(get_bench_path(), 'apps', app or 'frappe')
cov = Coverage(source=[source_path], omit=['*.html', '*.js', '*.css', '*_dashboard.py', '*/patches/*', 'test_*.py'])
cov = Coverage(source=[source_path], omit=['*.html', '*.js', '*.css', '*/doctype/*/*_dashboard.py', '*/patches/*'])
cov.start()
ret = frappe.test_runner.main(app, module, doctype, context.verbose, tests=tests,