Esempio n. 1
0
def test_reduce_seconds_return_days():
    """129476 seconds is 1d11h"""

    assert reduce_seconds(secs=129476) == '1d11h'
Esempio n. 2
0
def test_reduce_seconds_return_minutes():
    """2064 seconds is 34m24s"""

    assert reduce_seconds(secs=2064) == '34m24s'
Esempio n. 3
0
def test_reduce_seconds_return_hours():
    """64738 seconds is 17h58m"""

    assert reduce_seconds(secs=64738) == '17h58m'
Esempio n. 4
0
def test_reduce_seconds_return_seconds():
    """Output as 1s"""

    assert reduce_seconds(secs=1) == '1s'
Esempio n. 5
0
def test_reduce_seconds_return_days():
    """129476 seconds is 1d11h"""

    assert reduce_seconds(secs=129476) == '1d11h'
Esempio n. 6
0
def test_reduce_seconds_return_hours():
    """64738 seconds is 17h58m"""

    assert reduce_seconds(secs=64738) == '17h58m'
Esempio n. 7
0
def test_reduce_seconds_return_minutes():
    """2064 seconds is 34m24s"""

    assert reduce_seconds(secs=2064) == '34m24s'
Esempio n. 8
0
def test_reduce_seconds_return_seconds():
    """Output as 1s"""

    assert reduce_seconds(secs=1) == '1s'