diff options
author | Frederick Muriuki Muriithi | 2025-07-23 16:35:51 -0500 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2025-07-23 16:59:28 -0500 |
commit | 35de7ee1b81e7450573c56b55ff658e382bd6b66 (patch) | |
tree | f0700e5b75fd5af192a792002199cca6cfa98aea | |
parent | df45a172cdc0b012d4fad8363531fd1caa5c7f4b (diff) | |
download | gn-libs-35de7ee1b81e7450573c56b55ff658e382bd6b66.tar.gz |
Add some more tests for invalid specifications.
-rw-r--r-- | tests/unit/test_privileges_spec_parsing.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/unit/test_privileges_spec_parsing.py b/tests/unit/test_privileges_spec_parsing.py index 7f80ed8..d21fee3 100644 --- a/tests/unit/test_privileges_spec_parsing.py +++ b/tests/unit/test_privileges_spec_parsing.py @@ -116,7 +116,11 @@ def test_or_and(spec, expected): @pytest.mark.unit_test @pytest.mark.parametrize( "spec", - ()) + ("()", + "this is invalid", + "priv1 AND priv2", + "(priv1 AND priv2)", + "(AND priv1 priv2 priv3")) def test_invalid(spec): """ GIVEN: An invalid specification |