def example_test(name):
path = (Path(__file__).parent / ".." / ".." / "examples" / name).resolve()
def test_function(self):
- subprocess.check_call([sys.executable, str(path), "generate"], stdout=subprocess.DEVNULL)
+ subprocess.check_call([sys.executable, str(path), "generate", "-t", "v"],
+ stdout=subprocess.DEVNULL)
return test_function
test_mem = example_test("basic/mem.py")
test_pmux = example_test("basic/pmux.py")
test_por = example_test("basic/por.py")
- test_uart = example_test("basic/uart.py")
+
+ def test_uart(self):
+ path = (Path(__file__).parent / ".." / ".." / "examples" / "basic" / "uart.py").resolve()
+ def test_function(self):
+ subprocess.check_call([sys.executable, str(path), "generate"],
+ stdout=subprocess.DEVNULL)