def run(): print('###################') print('Version', sys.version) print('VAR', mh.EG_VAR2) print('func', mh.testFunction()) print('member', mh.Mh().runMh()) print('------------') v = mh.EG_VAR2 f = mh.testFunction() m = mh.Mh().runMh() print('------------') print('v', v) print('f', f) print('m', m)
def step_impl(context): context.x = mh.Mh()
def step_impl(context): assert type(context.x) is type(mh.Mh())
# eg_app.py import sys import logging import logging.config import yaml #mypath = "/Users/markhallett/notgoogledrive/github/mh/src" #mypath = "../../../src" #sys.path.insert(0, mypath) import mh logging.config.dictConfig(yaml.load(open('logging_config.ymal', 'r'), Loader=yaml.FullLoader )) logger = logging.getLogger(__name__) if __name__ == '__main__': logger.info("START") logger.info(mh) try: 1/0 except ZeroDivisionError as e: logger.error('eg', exc_info = True) logger.info(mh.__version__) mh.Mh().runMh() logger.debug("END")
def test_class(self): x = mh.Mh() x.runMh() self.assertEqual(100, x.runMh())