def test1(): models = example() assert len(models) m2p = render_csharp.Model2Package(models, dir='.') m2p.run() code = m2p.code #exec(code) codetest = m2p.codetest mymodel = Path('csharp_model') mymodel.chdir() os.system('nosetests') Path('..').chdir() """if csharp_model.exists(): csharp_model.rmtree()""" return models
def generate_test_cs(model, dir): return [render_csharp.Model2Package(model, dir).generate_test(model)]
models = example() assert len(models) m2p = render_csharp.Model2Package(models, dir='.') m2p.run() code = m2p.code #exec(code) codetest = m2p.codetest mymodel = Path('csharp_model') mymodel.chdir() os.system('nosetests') Path('..').chdir() """if csharp_model.exists(): csharp_model.rmtree()""" return models if __name__ == '__main__': models = example() assert len(models) m2p = render_csharp.Model2Package(models) m2p.run() code = m2p.code #exec(code) codetest = m2p.codetest #exec(codetest)