def setUp(self):    # pylint: disable=C0103
        # Initialize task object with attributes
        self.my_task = task.Task(title='title', notes='note')

        # Initialize file storage object using test-specific file names
        self.task_storage = storage.GTaskStorage()

        util.print_helper()
    def setUp(self):    # pylint: disable=C0103
        # Initialize task object with attributes
        self.my_task = task.Task(title='title', notes='note')

        # Initialize test database name
        self.test_task_dbname = 'testtaskdb'

        # Initialize file storage object using test-specific file names
        self.task_storage = storage.SQLiteStorage(
            self.test_task_dbname)

        util.print_helper()
    def setUp(self):    # pylint: disable=C0103
        self.interface_controller = controller.Controller(
                'gtasks')


        self.title = 'tasks title'
        self.notes = 'notes text'
        self.key = None

        util.print_helper()
        # TODO: This isn't a good way to do this.
        self.added_task = self.add_task()
示例#4
0
    def setUp(self):    # pylint: disable=C0103
        self.test_task_filename = 'testtaskfile'
        self.test_key_filename = 'testkeyfile'
        self.parser = ctask.CLIParser(
                'file',
                task_filename=self.test_task_filename,
                key_filename=self.test_key_filename)

        self.title = 'title'
        self.notes = 'notes'
        self.key = 0

        util.print_helper()
    def setUp(self):    # pylint: disable=C0103
        # Initialize test file names
        self.test_key_filename = 'testkeyfile'

        # Initialize file storage object using test-specific file names
        self.key_gen = storage._KeyGenerator(
            self.test_key_filename
        )


        # Clear/Create test files
        open(self.test_key_filename, 'w').close()

        util.print_helper()
    def setUp(self):    # pylint: disable=C0103
        # Initialize task object with attributes
        self.my_task = task.Task(title='title', notes='note')

        # Initialize test file names
        self.test_task_filename = 'testtaskfile'
        self.test_key_filename = 'testkeyfile'

        # Initialize file storage object using test-specific file names
        self.task_storage = storage.FileStorage(
            self.test_task_filename,
            self.test_key_filename
        )

        util.print_helper()
    def setUp(self):    # pylint: disable=C0103
        self.test_task_filename = 'test_taskfile'
        self.test_key_filename = 'test_keyfile'

        self.interface_controller = controller.Controller(
                'file',
                task_filename=self.test_task_filename,
                key_filename=self.test_key_filename)


        self.title = 'tasks title'
        self.notes = 'notes text'
        self.key = None

        open(self.test_task_filename, 'w').close()
        open(self.test_key_filename, 'w').close()

        util.print_helper()

        # TODO: This isn't a good way to do this.
        self.added_task = self.add_task()
示例#8
0
    def setUp(self):    # pylint: disable=C0103
        # Initialize task object with attributes
        self.my_task = task.Task(title='title', notes='note')

        util.print_helper()