def test_playground_app(): with enaml.imports(): with open('examples/playground/view.enaml', 'rb') as f: ContentView = load(f.read()) app = MockApplication.instance('android') app.view = ContentView() app.run()
def test_demo_app(): with enaml.imports(): with open('src/apps/view.enaml', 'rb') as f: ContentView = load(f.read()) app = MockApplication.instance('android') app.view = ContentView() app.run()
def test_examples(platforms, path): #: Load dir_path = os.path.abspath(os.path.split(os.path.dirname(__file__))[0]) enaml_file = os.path.join(dir_path, 'examples', os.path.normpath(path)) with enaml.imports(): with open(enaml_file, 'rb') as f: ContentView = load(f.read()) #: Run for each platform for platform in platforms: app = MockApplication.instance(platform) app.view = ContentView() app.run()