mirror of
https://github.com/arcan1s/ahriman.git
synced 2025-06-28 06:41:43 +00:00
ALLOW_AUTO_ARCHITECTURE_RUN flag for unsafe commands
This commit is contained in:
@ -31,3 +31,10 @@ def test_get_unsafe_commands() -> None:
|
||||
commands = UnsafeCommands.get_unsafe_commands(parser)
|
||||
for command in commands:
|
||||
assert subparser.choices[command].get_default("unsafe")
|
||||
|
||||
|
||||
def test_disallow_auto_architecture_run() -> None:
|
||||
"""
|
||||
must not allow multi architecture run
|
||||
"""
|
||||
assert not UnsafeCommands.ALLOW_AUTO_ARCHITECTURE_RUN
|
Reference in New Issue
Block a user