Ejemplo n.º 1
0
def test_measure():
    bar = ProgressBar()
    measurement = bar.__rich_measure__(None, 120)
    assert measurement.minimum == 4
    assert measurement.maximum == 120
Ejemplo n.º 2
0
def test_measure():
    console = Console(width=120)
    bar = ProgressBar()
    measurement = bar.__rich_measure__(console, console.options)
    assert measurement.minimum == 4
    assert measurement.maximum == 120