mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-15 04:53:00 +08:00
17 lines
495 B
Python
17 lines
495 B
Python
"""Execute shipped update UI handlers with deterministic DOM/XHR fixtures."""
|
|
from pathlib import Path
|
|
import subprocess
|
|
import unittest
|
|
|
|
ROOT = Path(__file__).resolve().parents[1]
|
|
|
|
|
|
class UpdateLuciTests(unittest.TestCase):
|
|
def test_update_retry_and_request_completion(self):
|
|
subprocess.run(['node', str(ROOT / 'tests/update_luci.js'),
|
|
str(ROOT / 'root/www/luci-static/resources/smart_srun.js')], check=True)
|
|
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|