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 2020-06-28 17:24:04 -07:00 committed by James Valleroy
parent 618501f8e6
commit 41fc24d296
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

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