示例#1
0
def test_reduce_seconds_return_days():
    """129476 seconds is 1d11h"""

    assert reduce_seconds(secs=129476) == '1d11h'
示例#2
0
def test_reduce_seconds_return_minutes():
    """2064 seconds is 34m24s"""

    assert reduce_seconds(secs=2064) == '34m24s'
示例#3
0
def test_reduce_seconds_return_hours():
    """64738 seconds is 17h58m"""

    assert reduce_seconds(secs=64738) == '17h58m'
示例#4
0
def test_reduce_seconds_return_seconds():
    """Output as 1s"""

    assert reduce_seconds(secs=1) == '1s'
示例#5
0
def test_reduce_seconds_return_days():
    """129476 seconds is 1d11h"""

    assert reduce_seconds(secs=129476) == '1d11h'
示例#6
0
def test_reduce_seconds_return_hours():
    """64738 seconds is 17h58m"""

    assert reduce_seconds(secs=64738) == '17h58m'
示例#7
0
def test_reduce_seconds_return_minutes():
    """2064 seconds is 34m24s"""

    assert reduce_seconds(secs=2064) == '34m24s'
示例#8
0
def test_reduce_seconds_return_seconds():
    """Output as 1s"""

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