From 7522a8eb4232a4fcb03c1af41b70e3f9c25702ca Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Tue, 22 Jul 2025 17:03:37 -0500 Subject: Begin working on simple DSL for privileges checking. --- tests/unit/test_privileges_checking.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 tests/unit/test_privileges_checking.py (limited to 'tests/unit/test_privileges_checking.py') diff --git a/tests/unit/test_privileges_checking.py b/tests/unit/test_privileges_checking.py new file mode 100644 index 0000000..460344f --- /dev/null +++ b/tests/unit/test_privileges_checking.py @@ -0,0 +1,16 @@ +"""Tests to verify the privileges check works.""" +import pytest + +from gn_libs.privileges import check + +@pytest.mark.unit_test +@pytest.mark.parametrize( + "spec,privileges,expected", + ()) +def test_check(spec, privileges, expected): + """ + GIVEN: A privileges-check specification, and a tuple of privileges + WHEN: A check is performed + THEN: Verify that the check returns the expected value + """ + assert check(spec, privileges) == expected -- cgit 1.4.1