config: Mark test_homepage_field as needs_root

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
James Valleroy 2020-12-12 22:03:19 -05:00
parent ec870a1766
commit 6531babe06
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

@ -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.