Complete 3axis tutorial native and Web/WASM parity tools
This commit is contained in:
28
scripts/test_validate_publish_gate.py
Normal file
28
scripts/test_validate_publish_gate.py
Normal file
@@ -0,0 +1,28 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Tests for the active publication gate selector."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
from pathlib import Path
|
||||
|
||||
sys.path.insert(0, str(Path(__file__).resolve().parent))
|
||||
|
||||
from validate_publish_gate import validate
|
||||
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[1]
|
||||
|
||||
|
||||
class ValidatePublishGateTests(unittest.TestCase):
|
||||
def test_selected_case_gate_is_publishable(self) -> None:
|
||||
result = validate(ROOT)
|
||||
self.assertEqual(result["status"], "authorized")
|
||||
self.assertEqual(result["release_action"], "ALLOW_RELEASE")
|
||||
self.assertEqual(result["scope"], "selected_case_web_wasm_simulation")
|
||||
self.assertEqual(result["errors"], [])
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
Reference in New Issue
Block a user