Exemplo n.º 1
0
#
# Python Macro Language for Dragon NaturallySpeaking
#   (c) Copyright 1999 by Joel Gould
#   Portions (c) Copyright 1999 by Dragon Systems, Inc.
#
#   This script performs some basic tests of the NatLink system.  Dragon
#   NaturallySpeaking should be running with nothing in the editor window
#   (that you want to preserve) before these tests are run.
#   performed.
from natlink.pathqh import path
from pprint import pprint
import sys

unimacrodir = path('./..').normpath()
if unimacrodir not in sys.path:
    sys.path.append(unimacrodir)

from dtactions.unimacro import unimacroutils
from natlink import natlinkutils
from dtactions.unimacro import unimacroactions as actions

action = actions.doAction

import unittest
import TestCaseWithHelpers


##class UnimacroBasicTest(TestCaseWithHelpers.TestCaseWithHelpers):
class BasicTest(TestCaseWithHelpers.TestCaseWithHelpers):
    def setUp(self):
        pass
Exemplo n.º 2
0
#
# Python Macro Language for Dragon NaturallySpeaking
#   (c) Copyright 1999 by Joel Gould
#   Portions (c) Copyright 1999 by Dragon Systems, Inc.
#
#   This script performs some basic tests of the NatLink system.  Dragon
#   NaturallySpeaking should be running with nothing in the editor window
#   (that you want to preserve) before these tests are run.
#   performed.
import sys
from natlink.pathqh import path
thisDir = path('.')
unimacroDir=(thisDir/'..').normpath()
if unimacroDir not in sys.path:
    print("add unimacroDir to sys.path: %s"% unimacroDir)
    sys.path.append(unimacroDir)
from dtactions.unimacro import unimacroutils
from natlink import natlinkutils

import time
from dtactions.unimacro import unimacroactions as actions

import unittest
import UnimacroTestHelpers



##class UnimacroBasicTest(TestCaseWithHelpers.TestCaseWithHelpers):
class ClipboardTest(UnimacroTestHelpers.UnimacroTestHelpers):
      
    def setUp(self):