dynamicweb/cms/tests/test_static_analysis.py

13 lines
365 B
Python

import os
from unittest import TestCase
from ruff.__main__ import find_ruff_bin
class AboveStaticAnalysisCodeTest(TestCase):
"""
Name is pretty lame, but ensure it's executed before every other test
"""
def test_ruff(self):
ruff = find_ruff_bin()
self.assertEqual(os.spawnv(os.P_WAIT, ruff, ["ruff", "check", "cms", "menus"]), 0)