import unittest from tests import mytestrunner from voiceplay.cli.main import main from voiceplay.cli.argparser.argparser import Help, MyArgumentParser from voiceplay.cli.console.console import Console class DummyTestCase(unittest.TestCase): ''' ''' def setUp(self): pass def test_01_test_normal(self): pass def tearDown(self): pass if __name__ == '__main__': classes = [DummyTestCase] mytestrunner(classes)
import os import sys sys.path.insert(1, ".") sys.path.insert(2, "..") import unittest from twigator.schemabuilder import get_schema from tests import mytestrunner class SchemaBuilderTestCase(unittest.TestCase): ''' ''' def setUp(self): self.fixture = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'fixtures', 'schema.yml') def test_01_test_normal(self): fixture_data = open(self.fixture, 'r').read().rstrip('\n') generated_data = get_schema().rstrip('\n') self.assertEqual(fixture_data, generated_data) if __name__ == '__main__': classes = [SchemaBuilderTestCase] mytestrunner(classes)