move over test

This commit is contained in:
Jonathan Metzman 2021-01-20 07:59:32 -08:00
parent 913962ba54
commit 8cda07fb9f
3 changed files with 4 additions and 4 deletions

View File

@ -51,8 +51,8 @@ def remove_unaffected_fuzz_targets(project_name, out_dir, files_changed,
logging.error('No fuzz targets found in out dir.')
return
coverage_getter = coverage.OSSFuzzCoveragGetter(project_name, repo_path)
if coverage_getter.fuzzer_stats_url:
coverage_getter = coverage.OssFuzzCoverageGetter(project_name, repo_path)
if not coverage_getter.fuzzer_stats_url:
# Don't remove any fuzz targets unless we have data.
logging.error('Could not download latest coverage report.')
return

View File

@ -27,7 +27,7 @@ import utils
LATEST_REPORT_INFO_PATH = 'oss-fuzz-coverage/latest_report_info/'
class OSSFuzzCoverageGetter:
class OssFuzzCoverageGetter:
"""Gets coverage data for a project from OSS-Fuzz."""
def __init__(self, project_name, repo_path):

View File

@ -17,7 +17,7 @@ from unittest import mock
import coverage
# pylint: disable=protected-access
class GetFuzzerStatsDirUrlTest(unittest.TestCase):
"""Tests _get_fuzzer_stats_dir_url."""