"""pytest wrapper: build seq_detect_moore.sv with Icarus and run the cocotb tests in cocotb_seq_detect.py.""" from sim_runner import run_cocotb def test_seq_detect() -> None: n_tests, n_failed = run_cocotb(["seq_detect_moore.sv"], toplevel="seq_detect_moore", test_module="cocotb_seq_detect") assert n_tests > 0 and n_failed == 0, f"{n_failed} of {n_tests} cocotb tests failed"