From 6531babe069e014d34b9436089a4c7e5155a5341 Mon Sep 17 00:00:00 2001 From: James Valleroy Date: Sat, 12 Dec 2020 22:03:19 -0500 Subject: [PATCH] config: Mark test_homepage_field as needs_root Signed-off-by: James Valleroy --- plinth/modules/config/tests/test_config.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/plinth/modules/config/tests/test_config.py b/plinth/modules/config/tests/test_config.py index 0f5c57a98..18dcca1d2 100644 --- a/plinth/modules/config/tests/test_config.py +++ b/plinth/modules/config/tests/test_config.py @@ -116,10 +116,14 @@ class Dict2Obj(object): self.__dict__ = a_dict -@patch('plinth.frontpage.Shortcut.list', MagicMock(return_value=[ - Dict2Obj({'url': 'url/for/'+id, 'component_id': id}) - for id in ('a', 'b') - ])) +@patch('plinth.frontpage.Shortcut.list', + MagicMock(return_value=[ + Dict2Obj({ + 'url': 'url/for/' + id, + 'component_id': id + }) for id in ('a', 'b') + ])) +@pytest.mark.usefixtures('needs_root') def test_homepage_field(): """Test homepage changes.