Anton Shestakov <av6@dwimlabs.net>, Sun, 19 Jun 2016 14:41:11 +0800
viewer: use a lineno class to put styles on the line number links
tests/test_models.py
Permissions: -rw-r--r--
from datetime import datetime, timedelta from candolint.models import Check check = Check(started=now) check.finished = now + timedelta(seconds=10) assert check.get_duration() == '10 sec' check.finished = now + timedelta(minutes=5) assert check.get_duration() == '5 min' check.finished = now + timedelta(hours=2) assert check.get_duration() == '120 min'