audoWin/tests/test_schema.py
2025-12-19 16:24:04 +08:00

12 lines
325 B
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# MIT License
# Copyright (c) 2024
"""最小端到端测试schema 校验。"""
from autodemo.schema import DSLSpec
def test_dsl_schema_defaults() -> None:
spec = DSLSpec(steps=[{"action": "click", "target": {"Name": "btn"}}])
assert spec.retry_policy["max_attempts"] == 2
assert spec.waits["appear"] == 5.0