Anton Shestakov <av6@dwimlabs.net>, Thu, 23 Jun 2016 15:06:21 +0800
checker: go back to using hg files with -I and -X
Because -X is a bit simpler than a fileset that also excludes some files (to
code and just visually).
Also rename property to "include" for clarity.
tests/test_models.py
Permissions: -rw-r--r--
from datetime import datetime, timedelta from candolint.models import Project, Check project.domain = 'example.com' project.name = 'hello-world' assert project.get_title() == 'alice/hello-world' project.domain = 'hello-world.com' assert project.get_title() == 'hello-world.com/central' 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'