mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-06-26 10:54:28 +02:00
Fix typos
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
This commit is contained in:
parent
79a02f73ca
commit
d256580c4e
5 changed files with 8 additions and 9 deletions
|
@ -30,7 +30,7 @@ class MetaTest(type):
|
|||
# Name of function must start with test_ to be ran by unittest
|
||||
func.__name__ = "test_{0}".format(i)
|
||||
|
||||
# Attach the new test to the testclass
|
||||
# Attach the new test to the test class
|
||||
dct[func.__name__] = func
|
||||
|
||||
return super(MetaTest, meta).__new__(meta, classname, bases, dct)
|
||||
|
|
|
@ -27,11 +27,10 @@
|
|||
###############################################################################
|
||||
|
||||
import os
|
||||
import sys
|
||||
import unittest
|
||||
from datetime import datetime, timedelta
|
||||
|
||||
import sys
|
||||
|
||||
# Ensure python finds the local simpletap module
|
||||
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
|
||||
|
||||
|
@ -222,7 +221,7 @@ class TestMove(TestCase):
|
|||
# Place a non-synthetic interval in the history
|
||||
self.t("track {:%Y-%m-%dT%H:%M:%S}Z - {:%Y-%m-%dT%H:%M:%S}Z bar".format(day_before, day_before + timedelta(minutes=30)))
|
||||
|
||||
# Now create an open interval that crosses the exlusions added
|
||||
# Now create an open interval that crosses the exclusions added
|
||||
# previously, which will result in synthetic intervals
|
||||
self.t("start {:%Y-%m-%dT%H:%M:%S}Z foo".format(five_hours_before_utc))
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
set -e
|
||||
|
||||
# Due to system integrity protection, macOS requires us to use a copy of date
|
||||
# if we want it to work with faketimea.
|
||||
# if we want it to work with faketime.
|
||||
DATE=$(command -v date)
|
||||
if [ $(uname -s) = "Darwin" ]; then
|
||||
TEMP_DATE=$(mktemp)
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
import sys
|
||||
import re
|
||||
import argparse
|
||||
import re
|
||||
import sys
|
||||
from collections import defaultdict
|
||||
|
||||
|
||||
|
@ -112,7 +112,7 @@ if __name__ == "__main__":
|
|||
expected_test_count -= 1
|
||||
continue
|
||||
|
||||
# It's important these come last, since they're subpatterns of the above
|
||||
# It's important these come last, since they're sub-patterns of the above
|
||||
|
||||
match = ok.match(line)
|
||||
if match:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue