Example #1
0
def test_report_totals_verbose() -> None:
    settings = Settings(None, Namespace(verbose=2))
    stats.report_totals(settings, 2048, 1024, True, [])
Example #2
0
def test_report_totals_test() -> None:
    settings = Settings(None, Namespace(test=True))
    stats.report_totals(settings, 2048, 1024, True, [])
Example #3
0
def test_report_noop_quiet() -> None:
    settings = Settings(None, Namespace(test=True))
    settings.verbose = 0
    stats.report_totals(settings, 0, 0, True, [])
Example #4
0
def test_report_totals_errors() -> None:
    settings = Settings(None, Namespace())
    errors = [(PATH, "dummyError")]
    stats.report_totals(settings, 0, 2048, True, errors)
Example #5
0
def test_report_totals_zero_quiet() -> None:
    settings = Settings(None, Namespace(test=True))
    settings.verbose = 0
    stats.report_totals(settings, 2048, 2028, True, [])
Example #6
0
def test_report_totals_neg() -> None:
    settings = Settings(None, Namespace())
    stats.report_totals(settings, 1024, 2048, True, [])
Example #7
0
def test_report_totals_bytes_in_zero() -> None:
    settings = Settings(None, Namespace())
    stats.report_totals(settings, 0, 2048, True, [])