From 292597d894bed0955e28d09fdf862de327434373 Mon Sep 17 00:00:00 2001 From: James Valleroy Date: Sun, 19 Aug 2018 08:16:26 -0400 Subject: [PATCH] users: Reset groups before testing register_group Signed-off-by: James Valleroy Reviewed-by: Joseph Nuthalapati --- plinth/modules/users/tests/test_group.py | 1 + 1 file changed, 1 insertion(+) diff --git a/plinth/modules/users/tests/test_group.py b/plinth/modules/users/tests/test_group.py index 530a5f2b5..3530a8362 100644 --- a/plinth/modules/users/tests/test_group.py +++ b/plinth/modules/users/tests/test_group.py @@ -28,6 +28,7 @@ class TestGroups(unittest.TestCase): """Test groups behavior.""" def test_register_group(self): """Test for multi addition of same group""" + users.groups = dict() # reset groups group = ('TestGroup', 'Group for testing') users.register_group(group) users.register_group(group)