mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-03-11 09:04:54 +00:00
config: Mark test_homepage_field as needs_root
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
ec870a1766
commit
6531babe06
@ -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.
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user