add initial bulk run from pre-commit over all files

This commit is contained in:
Felix Schurk
2024-07-29 22:34:51 +02:00
parent 665aeeef61
commit 93356b39c3
418 changed files with 21354 additions and 23858 deletions

View File

@@ -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__)))
@@ -41,26 +42,27 @@ class TestCustomRecurIndicator(TestCase):
def test_recurrence_indicator(self):
"""Add a recurring and non-recurring task, look for the indicator."""
self.t.config("report.foo.columns", "id,recur.indicator")
self.t.config("report.foo.labels", "ID,R")
self.t.config("report.foo.sort", "id+")
self.t.config("verbose", "nothing")
self.t.config("report.foo.columns", "id,recur.indicator")
self.t.config("report.foo.labels", "ID,R")
self.t.config("report.foo.sort", "id+")
self.t.config("verbose", "nothing")
self.t("add foo due:tomorrow recur:weekly")
self.t("add bar")
code, out, err = self.t("foo")
self.assertIn(" 1 R", out)
self.assertIn(" 2", out)
self.assertIn(" 2", out)
self.assertIn(" 3 R", out)
code, out, err = self.t("foo rc.recurrence.indicator=RE")
self.assertIn(" 1 RE", out)
self.assertIn(" 2", out)
self.assertIn(" 2", out)
self.assertIn(" 3 RE", out)
if __name__ == "__main__":
from simpletap import TAPTestRunner
unittest.main(testRunner=TAPTestRunner())
# vim: ai sts=4 et sw=4 ft=python