mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-19 09:53:08 +02:00
add initial bulk run from pre-commit over all files
This commit is contained in:
parent
665aeeef61
commit
93356b39c3
418 changed files with 21354 additions and 23858 deletions
|
@ -28,6 +28,7 @@
|
|||
import sys
|
||||
import os
|
||||
import unittest
|
||||
|
||||
# Ensure python finds the local simpletap module
|
||||
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
|
||||
|
||||
|
@ -57,7 +58,10 @@ class TestSequences(TestCase):
|
|||
"""Test sequences in start/stop"""
|
||||
self.t("1,2 start")
|
||||
code, out, err = self.t("_get 1.start 2.start")
|
||||
self.assertRegex(out, "\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2} \\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\n")
|
||||
self.assertRegex(
|
||||
out,
|
||||
"\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2} \\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\n",
|
||||
)
|
||||
|
||||
self.t("1,2 stop")
|
||||
code, out, err = self.t("_get 1.start 2.start")
|
||||
|
@ -84,12 +88,15 @@ class TestSequences(TestCase):
|
|||
def test_sequence_annotate(self):
|
||||
"""Test sequences in annotate"""
|
||||
self.t("1,2 annotate note")
|
||||
code, out, err = self.t("_get 1.annotations.1.description 2.annotations.1.description")
|
||||
code, out, err = self.t(
|
||||
"_get 1.annotations.1.description 2.annotations.1.description"
|
||||
)
|
||||
self.assertEqual("note note\n", out)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
from simpletap import TAPTestRunner
|
||||
|
||||
unittest.main(testRunner=TAPTestRunner())
|
||||
|
||||
# vim: ai sts=4 et sw=4 ft=python
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue