Skip to content

Commit

Permalink
Update to new style
Browse files Browse the repository at this point in the history
See pull request topydo#55
  • Loading branch information
MinchinWeb committed Oct 14, 2015
1 parent 65ef181 commit 044d1ad
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 16 deletions.
2 changes: 1 addition & 1 deletion test/TestAddCommand.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def test_add_dep03(self):
self.today + " Bar id:1")
self.assertEqual(self.errors, "")

def test_add_de04(self):
def test_add_dep04(self):
""" Test for using an after: tag with non-existing value. """
command = AddCommand.AddCommand(["Foo after:1"], self.todolist,
self.out, self.error)
Expand Down
9 changes: 5 additions & 4 deletions test/TopCommandTest.py → test/TestTopCommand.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,15 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.

from six import u
import unittest

from six import u
from topydo.commands.TopCommand import TopCommand
from topydo.lib.Config import config
from topydo.lib.Utils import get_terminal_size
from topydo.commands.TopCommand import TopCommand
from test.CommandTest import CommandTest
from test.TestFacilities import load_file_to_todolist

from test.CommandTestCase import CommandTest
from test.Facilities import load_file_to_todolist


class TopCommandTest(CommandTest):
Expand Down
8 changes: 4 additions & 4 deletions topydo/commands/ListCommand.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
from topydo.lib.IcalPrinter import IcalPrinter
from topydo.lib.JsonPrinter import JsonPrinter
from topydo.lib.PrettyPrinter import pretty_printer_factory
from topydo.lib.PrettyPrinterFilter import (PrettyPrinterHideTagFilter,
PrettyPrinterIndentFilter,
PrettyPrinterBasicPriorityFilter,
PrettyPrinterHumanDatesFilter)
from topydo.lib.PrettyPrinterFilter import (PrettyPrinterBasicPriorityFilter,
PrettyPrinterHideTagFilter,
PrettyPrinterHumanDatesFilter,
PrettyPrinterIndentFilter)


class ListCommand(ExpressionCommand):
Expand Down
12 changes: 5 additions & 7 deletions topydo/commands/TopCommand.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,13 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.

from topydo.lib.ExpressionCommand import ExpressionCommand
from topydo.lib.Config import config
from topydo.lib.ExpressionCommand import ExpressionCommand
from topydo.lib.PrettyPrinter import pretty_printer_factory
from topydo.lib.PrettyPrinterFilter import (
PrettyPrinterIndentFilter,
PrettyPrinterHideTagFilter,
PrettyPrinterBasicPriorityFilter,
PrettyPrinterHumanDatesFilter
)
from topydo.lib.PrettyPrinterFilter import (PrettyPrinterBasicPriorityFilter,
PrettyPrinterHideTagFilter,
PrettyPrinterHumanDatesFilter,
PrettyPrinterIndentFilter)
from topydo.lib.Utils import get_terminal_size


Expand Down

0 comments on commit 044d1ad

Please sign in to comment.