18 lines
666 B
Python
18 lines
666 B
Python
from pathlib import Path
|
|
import subprocess
|
|
import tempfile
|
|
import unittest
|
|
|
|
class ScaffoldUiScreenTests(unittest.TestCase):
|
|
def test_tool_contains_vendor_boundary(self):
|
|
root = Path(__file__).resolve().parents[2]
|
|
text = (root / 'tools/scaffold_ui_screen.py').read_text(encoding='utf-8')
|
|
self.assertIn('standard UI screen without vendor imports', text)
|
|
for template in (root / 'templates/vue/screens').glob('*.template'):
|
|
body = template.read_text(encoding='utf-8')
|
|
self.assertNotIn("from 'primevue", body)
|
|
self.assertNotIn("from 'ag-grid", body)
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|