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:
Sunil Mohan Adapa authored and James Valleroy committed 2020-06-28 21:02:17 -04:00
1 parent 618501f8e6
commit 41fc24d296
1 file changed
+2 -2
+2 -2
View File
@@ -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