From 41fc24d29695adadad8580e1ffe6dd1e4e809cca Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Sun, 28 Jun 2020 17:24:04 -0700 Subject: [PATCH] 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 Reviewed-by: James Valleroy --- plinth/tests/test_actions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plinth/tests/test_actions.py b/plinth/tests/test_actions.py index f3eb9bf9a..27633a97d 100644 --- a/plinth/tests/test_actions.py +++ b/plinth/tests/test_actions.py @@ -22,8 +22,8 @@ from plinth.actions import run, superuser_run from plinth.errors import ActionError -@pytest.fixture(scope='module', autouse=True) -def actions_test_setup(): +@pytest.fixture(autouse=True) +def actions_test_setup(load_cfg): """Setup a temporary directory for testing actions. Copy system commands ``echo`` and ``id`` into actions directory during