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:
parent
5da441db42
commit
4f33300d1c
7 changed files with 31 additions and 16 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue