mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-09-19 04:59:01 +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
|
self.__dict__ = a_dict
|
||||||
|
|
||||||
|
|
||||||
@patch('plinth.frontpage.Shortcut.list', MagicMock(return_value=[
|
@patch('plinth.frontpage.Shortcut.list',
|
||||||
Dict2Obj({'url': 'url/for/'+id, 'component_id': id})
|
MagicMock(return_value=[
|
||||||
for id in ('a', 'b')
|
Dict2Obj({
|
||||||
]))
|
'url': 'url/for/' + id,
|
||||||
|
'component_id': id
|
||||||
|
}) for id in ('a', 'b')
|
||||||
|
]))
|
||||||
|
@pytest.mark.usefixtures('needs_root')
|
||||||
def test_homepage_field():
|
def test_homepage_field():
|
||||||
"""Test homepage changes.
|
"""Test homepage changes.
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user