dbmoe / test_dashboard_workers.py
MarxistLeninist's picture
SG verified artifact 90b3f8710db94d8d
befe124 verified
Raw History Blame Contribute Delete
403 Bytes
"""Exercise the actual dashboard renderer with a small DOM test double."""
import pathlib,shutil,subprocess,unittest
class DashboardWorkers(unittest.TestCase):
@unittest.skipUnless(shutil.which('node'),'Node.js required for dashboard renderer tests')
def test_inference_only_and_mixed_contributors(self):
subprocess.run(['node',str(pathlib.Path(__file__).with_suffix('.js'))],check=True,timeout=15)