Commit e880112e authored by MinchinWeb's avatar MinchinWeb

Rename test files to start with "test"

This allows the default discover on unittest to work
parent 842ff3ad
......@@ -29,7 +29,7 @@ from io import StringIO
from topydo.commands import AddCommand
from topydo.commands import ListCommand
from test.CommandTest import CommandTest
from test.TestCommand import CommandTest
from topydo.lib.Config import config
from topydo.lib import TodoList
......
......@@ -17,7 +17,7 @@
import unittest
from topydo.commands.AppendCommand import AppendCommand
from test.CommandTest import CommandTest
from test.TestCommand import CommandTest
from topydo.lib.TodoList import TodoList
class AppendCommandTest(CommandTest):
......
......@@ -17,8 +17,8 @@
import unittest
from topydo.commands.ArchiveCommand import ArchiveCommand
from test.CommandTest import CommandTest
from test.TestFacilities import load_file_to_todolist
from test.TestCommand import CommandTest
from test.Facilities import load_file_to_todolist
from topydo.lib.TodoList import TodoList
class ArchiveCommandTest(CommandTest):
......
......@@ -19,7 +19,7 @@
import unittest
from topydo.lib.Colors import Colors, NEUTRAL_COLOR
from topydo.lib.Config import config
from test.TopydoTest import TopydoTest
from test.TestTopydo import TopydoTest
class ColorsTest(TopydoTest):
def test_project_color1(self):
......
......@@ -17,7 +17,7 @@
import unittest
from topydo.lib.Utils import escape_ansi
from test.TopydoTest import TopydoTest
from test.TestTopydo import TopydoTest
class CommandTest(TopydoTest):
def __init__(self, *args, **kwargs):
......
......@@ -17,7 +17,7 @@
import unittest
from topydo.lib.Config import config
from test.TopydoTest import TopydoTest
from test.TestTopydo import TopydoTest
class ConfigTest(TopydoTest):
def test_config1(self):
......
......@@ -17,7 +17,7 @@
import unittest
from six import u
from test.CommandTest import CommandTest
from test.TestCommand import CommandTest
from topydo.lib.Config import config
from topydo.commands.DeleteCommand import DeleteCommand
from topydo.lib.TodoList import TodoList
......
......@@ -17,7 +17,7 @@
import unittest
from topydo.commands.DepCommand import DepCommand
from test.CommandTest import CommandTest
from test.TestCommand import CommandTest
from topydo.lib.TodoList import TodoList
class DepCommandTest(CommandTest):
......
......@@ -18,7 +18,7 @@ import unittest
from six import u
from topydo.commands.DepriCommand import DepriCommand
from test.CommandTest import CommandTest
from test.TestCommand import CommandTest
from topydo.lib.TodoList import TodoList
class DepriCommandTest(CommandTest):
......
......@@ -19,7 +19,7 @@ import unittest
from six import u
from topydo.commands.DoCommand import DoCommand
from test.CommandTest import CommandTest
from test.TestCommand import CommandTest
from topydo.lib.TodoList import TodoList
def _yes_prompt(self):
......
......@@ -27,7 +27,7 @@ from six import u
import os
from topydo.commands.EditCommand import EditCommand
from test.CommandTest import CommandTest
from test.TestCommand import CommandTest
from topydo.lib.TodoList import TodoList
from topydo.lib.Todo import Todo
from topydo.lib.Config import config
......
......@@ -20,9 +20,9 @@ from datetime import date, timedelta
import unittest
from topydo.lib import Filter
from test.TestFacilities import load_file, todolist_to_string, load_file_to_todolist
from test.Facilities import load_file, todolist_to_string, load_file_to_todolist
from topydo.lib.Todo import Todo
from test.TopydoTest import TopydoTest
from test.TestTopydo import TopydoTest
class FilterTest(TopydoTest):
def test_filter03(self):
......
......@@ -17,7 +17,7 @@
import unittest
from topydo.lib.Graph import DirectedGraph
from test.TopydoTest import TopydoTest
from test.TestTopydo import TopydoTest
class GraphTest(TopydoTest):
def setUp(self):
......
......@@ -20,7 +20,7 @@ import unittest
from topydo.lib.Config import config
from topydo.lib.Importance import importance
from topydo.lib.Todo import Todo
from test.TopydoTest import TopydoTest
from test.TestTopydo import TopydoTest
class ImportanceTest(TopydoTest):
def test_importance1(self):
......
......@@ -16,7 +16,7 @@
from topydo.lib.JsonPrinter import JsonPrinter
from topydo.lib.Todo import Todo
from test.TopydoTest import TopydoTest
from test.TestTopydo import TopydoTest
class JsonPrinterTest(TopydoTest):
"""
......
......@@ -21,8 +21,8 @@ import unittest
from topydo.lib.Config import config
from topydo.commands.ListCommand import ListCommand
from test.CommandTest import CommandTest
from test.TestFacilities import load_file_to_todolist
from test.TestCommand import CommandTest
from test.Facilities import load_file_to_todolist
class ListCommandTest(CommandTest):
def setUp(self):
......
......@@ -17,8 +17,8 @@
import unittest
from topydo.commands.ListContextCommand import ListContextCommand
from test.CommandTest import CommandTest
from test.TestFacilities import load_file_to_todolist
from test.TestCommand import CommandTest
from test.Facilities import load_file_to_todolist
class ListContextCommandTest(CommandTest):
def test_contexts1(self):
......
......@@ -17,8 +17,8 @@
import unittest
from topydo.commands.ListProjectCommand import ListProjectCommand
from test.CommandTest import CommandTest
from test.TestFacilities import load_file_to_todolist
from test.TestCommand import CommandTest
from test.Facilities import load_file_to_todolist
class ListProjectCommandTest(CommandTest):
def test_projects1(self):
......
......@@ -19,7 +19,7 @@ import unittest
from six import u
from topydo.commands.PostponeCommand import PostponeCommand
from test.CommandTest import CommandTest
from test.TestCommand import CommandTest
from topydo.lib.TodoList import TodoList
class PostponeCommandTest(CommandTest):
......
......@@ -18,7 +18,7 @@ import unittest
from six import u
from topydo.commands.PriorityCommand import PriorityCommand
from test.CommandTest import CommandTest
from test.TestCommand import CommandTest
from topydo.lib.TodoList import TodoList
class PriorityCommandTest(CommandTest):
......
......@@ -20,7 +20,7 @@ import unittest
from topydo.lib.Config import config
from topydo.lib.Recurrence import advance_recurring_todo, NoRecurrenceException
from topydo.lib.Todo import Todo
from test.TopydoTest import TopydoTest
from test.TestTopydo import TopydoTest
class RecurrenceTest(TopydoTest):
def setUp(self):
......
......@@ -18,7 +18,7 @@ from datetime import date, timedelta
import unittest
from topydo.lib.RelativeDate import relative_date_to_date
from test.TopydoTest import TopydoTest
from test.TestTopydo import TopydoTest
class RelativeDateTester(TopydoTest):
def setUp(self):
......
......@@ -18,8 +18,8 @@ import unittest
from topydo.lib.Config import config
from topydo.commands.SortCommand import SortCommand
from test.CommandTest import CommandTest
from test.TestFacilities import load_file_to_todolist
from test.TestCommand import CommandTest
from test.Facilities import load_file_to_todolist
class SortCommandTest(CommandTest):
def setUp(self):
......
......@@ -19,8 +19,8 @@ import unittest
from topydo.lib.Config import config
from topydo.lib.Sorter import Sorter
from test.TestFacilities import load_file, todolist_to_string, load_file_to_todolist, print_view
from test.TopydoTest import TopydoTest
from test.Facilities import load_file, todolist_to_string, load_file_to_todolist, print_view
from test.TestTopydo import TopydoTest
class SorterTest(TopydoTest):
def sort_file(self, p_filename, p_filename_ref, p_sorter):
......
......@@ -17,7 +17,7 @@
import unittest
from topydo.commands.TagCommand import TagCommand
from test.CommandTest import CommandTest
from test.TestCommand import CommandTest
from topydo.lib.TodoList import TodoList
class TagCommandTest(CommandTest):
......
......@@ -18,7 +18,7 @@ from datetime import date, timedelta
import unittest
from topydo.lib.Todo import Todo
from test.TopydoTest import TopydoTest
from test.TestTopydo import TopydoTest
def today_date():
today = date.today()
......
......@@ -21,7 +21,7 @@ import re
import unittest
from topydo.lib.TodoBase import TodoBase
from test.TopydoTest import TopydoTest
from test.TestTopydo import TopydoTest
class TodoBaseTester(TopydoTest):
def test_parse_tag(self):
......
......@@ -17,8 +17,8 @@
from six import u
import unittest
from test.TestFacilities import load_file
from test.TopydoTest import TopydoTest
from test.Facilities import load_file
from test.TestTopydo import TopydoTest
class TodoFileTest(TopydoTest):
def test_empty_file(self):
......
......@@ -25,7 +25,7 @@ from topydo.lib.TodoFile import TodoFile
from topydo.lib.TodoListBase import InvalidTodoException
from topydo.lib.TodoList import TodoList
from topydo.lib.TodoListBase import TodoListBase
from test.TopydoTest import TopydoTest
from test.TestTopydo import TopydoTest
class TodoListTester(TopydoTest):
def setUp(self):
......
......@@ -18,10 +18,10 @@ import unittest
from topydo.lib import Filter
from topydo.lib.Sorter import Sorter
from test.TestFacilities import load_file, todolist_to_string, print_view
from test.Facilities import load_file, todolist_to_string, print_view
from topydo.lib.TodoFile import TodoFile
from topydo.lib.TodoList import TodoList
from test.TopydoTest import TopydoTest
from test.TestTopydo import TopydoTest
class ViewTest(TopydoTest):
def test_view(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment