mirror of
https://github.com/PR0M3TH3AN/SeedPass.git
synced 2025-09-10 08:19:23 +00:00
Document GUI backend requirement and handle missing backend
This commit is contained in:
@@ -557,6 +557,14 @@ def test_gui_command(monkeypatch):
|
||||
"seedpass_gui.app",
|
||||
SimpleNamespace(main=fake_main),
|
||||
)
|
||||
monkeypatch.setattr(cli.importlib.util, "find_spec", lambda n: True)
|
||||
result = runner.invoke(app, ["gui"])
|
||||
assert result.exit_code == 0
|
||||
assert called.get("called") is True
|
||||
|
||||
|
||||
def test_gui_command_no_backend(monkeypatch):
|
||||
monkeypatch.setattr(cli.importlib.util, "find_spec", lambda n: None)
|
||||
result = runner.invoke(app, ["gui"])
|
||||
assert result.exit_code == 1
|
||||
assert "BeeWare GUI backend" in result.stderr
|
||||
|
Reference in New Issue
Block a user