...
 
Commits (2)
[run]
omit = *tests*
[report]
ignore_errors = True
......@@ -113,15 +113,13 @@ class Command(BaseCommand):
:return:
"""
from coverage.results import Numbers
from coverage.report import Reporter
from coverage.misc import NoSource
from noc.tests.conftest import _stats as stats
self.print("---[ Test session statistics ]------")
cov.get_data()
reporter = Reporter(cov, cov.config)
cov_data = cov.get_data()
totals = Numbers()
for fr in reporter.find_file_reporters(None):
for fr in cov_data.measured_files():
try:
analysis = cov._analyze(fr)
except NoSource:
......
[tool.black]
line-length = 100
target-version = ['py33']
[tool.coverage.run]
omit = ['*tests*']
[tool.coverage.report]
ignore_errors = true
Coverage==4.5.4
Coverage[toml]==5.0.3
pytest==4.6.6
pytest-dependency==0.4.0