mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-06-26 10:54:28 +02:00
Fix typos and wording
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
This commit is contained in:
parent
14bed139f6
commit
082708a7ca
19 changed files with 30 additions and 32 deletions
|
@ -27,7 +27,7 @@ class MetaTest(type):
|
|||
func = meta.make_function(classname, *args, **kwargs)
|
||||
|
||||
# Rename the function after a unique identifier
|
||||
# Name of function must start with test_ to be ran by unittest
|
||||
# Name of function must start with test_ to be run by unittest
|
||||
func.__name__ = "test_{0}".format(i)
|
||||
|
||||
# Attach the new test to the test class
|
||||
|
|
|
@ -160,7 +160,7 @@ class Timew(object):
|
|||
*not* fail if program finishes abnormally.
|
||||
|
||||
If you wish to pass instructions to timew such as confirmations or other
|
||||
input via stdin, you can do so by providing a input string.
|
||||
input via stdin, you can do so by providing an input string.
|
||||
Such as input="y\ny\n".
|
||||
|
||||
If merge_streams=True stdout and stderr will be merged into stdout.
|
||||
|
@ -195,7 +195,7 @@ class Timew(object):
|
|||
*fail* if program finishes abnormally.
|
||||
|
||||
If you wish to pass instructions to timew such as confirmations or other
|
||||
input via stdin, you can do so by providing a input string.
|
||||
input via stdin, you can do so by providing an input string.
|
||||
Such as input="y\ny\n".
|
||||
|
||||
If merge_streams=True stdout and stderr will be merged into stdout.
|
||||
|
|
|
@ -121,7 +121,7 @@ class TestStart(TestCase):
|
|||
self.assertIn("Tracking bar foo", out)
|
||||
|
||||
def test_start_with_less_tags_than_current_tracking(self):
|
||||
"""Test 'start' with less tags than current tracking should start new tracking"""
|
||||
"""Test 'start' with fewer tags than current tracking should start new tracking"""
|
||||
self.t("start 1h ago foo bar")
|
||||
|
||||
code, out, err = self.t("start foo")
|
||||
|
|
|
@ -235,7 +235,7 @@ class TestStop(TestCase):
|
|||
self.assertClosedInterval(j[0])
|
||||
|
||||
def test_stop_with_id_should_suggest_modify_command(self):
|
||||
"""Stop does not work with with ids, suggest modify command instead"""
|
||||
"""Stop does not work with ids, suggest modify command instead"""
|
||||
self.t("start 2h ago")
|
||||
self.t("start 1h ago")
|
||||
|
||||
|
|
|
@ -223,7 +223,7 @@ W{5: <{width}} {2:%Y-%m-%d} {2:%a} @1 BAZ 10:00:00 11:00:00 1:00:00 1:00:00
|
|||
"-", " ", width=week_col_padding), out)
|
||||
|
||||
def test_with_all_hint_and_first_interval_later_in_day(self):
|
||||
"""Summary should handle :all hint with first interval that starts later in day than latest interval"""
|
||||
"""Summary should handle :all hint with first interval that starts later in day than the latest interval"""
|
||||
now = datetime.now()
|
||||
yesterday = now - timedelta(days=1)
|
||||
|
||||
|
|
|
@ -102,7 +102,7 @@ class TestTag(TestCase):
|
|||
self.assertIn("At least one tag must be specified.", err)
|
||||
|
||||
def test_add_tag_to_closed_interval(self):
|
||||
"""Add a tag to an closed interval"""
|
||||
"""Add a tag to a closed interval"""
|
||||
now_utc = datetime.now().utcnow()
|
||||
one_hour_before_utc = now_utc - timedelta(hours=1)
|
||||
|
||||
|
@ -130,7 +130,7 @@ class TestTag(TestCase):
|
|||
self.assertOpenInterval(j[0], expectedTags=["bar", "foo"])
|
||||
|
||||
def test_add_tags_to_closed_interval(self):
|
||||
"""Add tags to an closed interval"""
|
||||
"""Add tags to a closed interval"""
|
||||
now_utc = datetime.now().utcnow()
|
||||
one_hour_before_utc = now_utc - timedelta(hours=1)
|
||||
|
||||
|
|
|
@ -130,7 +130,7 @@ class TestUntag(TestCase):
|
|||
self.assertOpenInterval(j[0], expectedTags=["baz"])
|
||||
|
||||
def test_remove_tags_from_closed_interval(self):
|
||||
"""Remove tags from an closed interval"""
|
||||
"""Remove tags from a closed interval"""
|
||||
now_utc = datetime.now().utcnow()
|
||||
one_hour_before_utc = now_utc - timedelta(hours=1)
|
||||
|
||||
|
|
|
@ -1,14 +1,12 @@
|
|||
#!/usr/bin/env python3
|
||||
# write-failure-test.py - Make sure the test will fail t
|
||||
|
||||
import sys
|
||||
import os
|
||||
|
||||
import atexit
|
||||
import filecmp
|
||||
import os
|
||||
import shutil
|
||||
import tempfile
|
||||
import subprocess
|
||||
import sys
|
||||
import tempfile
|
||||
import unittest
|
||||
|
||||
from basetest import Timew, TestCase
|
||||
|
@ -35,7 +33,7 @@ class WrappedTimew(Timew):
|
|||
"""Invoke timew with given arguments
|
||||
|
||||
If you wish to pass instructions to timew such as confirmations or other
|
||||
input via stdin, you can do so by providing a input string.
|
||||
input via stdin, you can do so by providing an input string.
|
||||
Such as input="y\ny\n".
|
||||
|
||||
If merge_streams=True stdout and stderr will be merged into stdout.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue