validinput = r''' \version "2.18.2" \relative c { \clef bass \key d \major \time 4/4 d4 a b fis g4 d g a } ''' invalidinput = r'sdf sdfsdf sdf' @tests.skipUnless(InsertDitaaPlugin.check_dependencies_ok(), 'Missing dependencies') class TestDitaaEditor(TestImageGeneratorPluginMixin, tests.TestCase): plugin = 'ditaaeditor' object_types = ['image+ditaa'] def setUp(self): self.validinput = r''' +--------+ +-------+ +-------+ | | --+ ditaa +--> | | | Text | +-------+ |diagram| |Document| |!magic!| | | | {d}| | | | | +---+----+ +-------+ +-------+ : ^
\key d \major \time 4/4 d4 a b fis g4 d g a } ''' invalidinput = r'sdf sdfsdf sdf' def runTest(self): 'Test Score Editor plugin' TestGenerator._test_generator(self) @tests.skipUnless(InsertDitaaPlugin.check_dependencies_ok(), 'Missing dependencies') class TestDitaaEditor(TestGenerator): pluginklass = InsertDitaaPlugin generatorklass = DitaaGenerator def setUp(self): self.validinput = r''' +--------+ +-------+ +-------+ | | --+ ditaa +--> | | | Text | +-------+ |diagram| |Document| |!magic!| | | | {d}| | | | | +---+----+ +-------+ +-------+ : ^ | Lots of work |