about summary refs log tree commit diff
path: root/tests/unit/auth/test_groups.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2026-04-07 13:52:19 -0500
committerFrederick Muriuki Muriithi2026-04-07 13:54:02 -0500
commitb48b0eabaa3f8702366b779e6fba96c88acf9e34 (patch)
treeb932fe089406e6a8d59c25dcf2391aa5210312d8 /tests/unit/auth/test_groups.py
parent135e861a8c09a93f4d094c8331529adadcefdba9 (diff)
downloadgn-auth-b48b0eabaa3f8702366b779e6fba96c88acf9e34.tar.gz
Update code to handle resource creators and creation times.
Diffstat (limited to 'tests/unit/auth/test_groups.py')
-rw-r--r--tests/unit/auth/test_groups.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/unit/auth/test_groups.py b/tests/unit/auth/test_groups.py
index 346beb9..6f1e8cd 100644
--- a/tests/unit/auth/test_groups.py
+++ b/tests/unit/auth/test_groups.py
@@ -61,6 +61,8 @@ def __cleanup_create_group__(conn, user, group):
             (str(user.user_id), str(grp_rsc["resource_id"])))
         cursor.execute("DELETE FROM group_resources WHERE group_id=?",
                        (str(group.group_id),))
+        cursor.execute("DELETE FROM resources WHERE resource_id=?",
+                       (grp_rsc["resource_id"],))
         cursor.execute("DELETE FROM groups WHERE group_id=?",
                        (str(group.group_id),))