mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-28 08:03:36 +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
|
||||
|
||||
|
||||
@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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user