test(pyargus): add better testing for parsing expressions

- Limit the size of the identifiers, and prevent ambiguity in the
identifiers.
This commit is contained in:
Anand Balakrishnan 2023-10-12 16:22:03 -07:00
parent 5da441db42
commit 4f33300d1c
No known key found for this signature in database
7 changed files with 31 additions and 16 deletions

View file

@ -1,13 +1,13 @@
import logging
from hypothesis import given
from hypothesis import HealthCheck, given, settings
import argus
from .utils.expr_gen import argus_expr
from argus.test_utils.expr_gen import argus_expr
@given(spec=argus_expr())
@settings(suppress_health_check=[HealthCheck.too_slow])
def test_correct_expr(spec: str) -> None:
try:
_ = argus.parse_expr(spec)