mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-20 10:34:30 +00:00
actions: tests: Fix test failures due order of fixtures
Ensuring that load_cfg fixture is ordered first will ensure that configuration is properly restored after test and that changes in other fixtures take effect. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
618501f8e6
commit
41fc24d296
@ -22,8 +22,8 @@ from plinth.actions import run, superuser_run
|
|||||||
from plinth.errors import ActionError
|
from plinth.errors import ActionError
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture(scope='module', autouse=True)
|
@pytest.fixture(autouse=True)
|
||||||
def actions_test_setup():
|
def actions_test_setup(load_cfg):
|
||||||
"""Setup a temporary directory for testing actions.
|
"""Setup a temporary directory for testing actions.
|
||||||
|
|
||||||
Copy system commands ``echo`` and ``id`` into actions directory during
|
Copy system commands ``echo`` and ``id`` into actions directory during
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user