mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-02-04 08:13:38 +00:00
users: Fix test fixture that disables console login restrictions
Fixes pytest StopIteration errors when console login restrictions are disabled before running tests. Signed-off-by: Veiko Aasa <veiko17@disroot.org>
This commit is contained in:
parent
38442ef7a0
commit
e6b0d732d5
@ -101,6 +101,8 @@ def fixture_disable_restricted_access(needs_root, load_cfg):
|
||||
security.set_restricted_access(False)
|
||||
yield
|
||||
security.set_restricted_access(True)
|
||||
else:
|
||||
yield
|
||||
|
||||
|
||||
@pytest.fixture(name='auto_cleanup_users_groups', autouse=True)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user