mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-06-26 10:54:28 +02:00
Python refactoring
- Optimize imports - Adjust coding style to PEP8 - Remove obsolete comments
This commit is contained in:
parent
311c8c2c83
commit
dd42f844c6
28 changed files with 74 additions and 467 deletions
17
test/start.t
17
test/start.t
|
@ -35,22 +35,6 @@ sys.path.append(os.path.dirname(os.path.abspath(__file__)))
|
|||
|
||||
from basetest import Timew, TestCase
|
||||
|
||||
# Test methods available:
|
||||
# self.assertEqual(a, b)
|
||||
# self.assertNotEqual(a, b)
|
||||
# self.assertTrue(x)
|
||||
# self.assertFalse(x)
|
||||
# self.assertIs(a, b)
|
||||
# self.assertIsNot(substring, text)
|
||||
# self.assertIsNone(x)
|
||||
# self.assertIsNotNone(x)
|
||||
# self.assertIn(substring, text)
|
||||
# self.assertNotIn(substring, text
|
||||
# self.assertRaises(e)
|
||||
# self.assertRegexpMatches(text, pattern)
|
||||
# self.assertNotRegexpMatches(text, pattern)
|
||||
# self.tap("")
|
||||
|
||||
|
||||
class TestStart(TestCase):
|
||||
def setUp(self):
|
||||
|
@ -114,7 +98,6 @@ class TestStart(TestCase):
|
|||
code, out, err = self.t("start foo bar")
|
||||
self.assertNotIn("Recorded bar foo", out)
|
||||
|
||||
|
||||
def test_single_interval_enclosing_exclusion(self):
|
||||
"""Add one interval that encloseѕ an exclusion, and is therefore flattened"""
|
||||
self.t.config("exclusions.monday", "<9:11:50 12:22:44-13:32:23 >18:05:11")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue