mirror of
https://github.com/PR0M3TH3AN/SeedPass.git
synced 2026-11-06 04:42:35 +00:00
Add GUI command
This commit is contained in:
1 parent
b8a2e29f21
commit
7ef7246361
2 files changed
+24
No files matched your search
@@ -532,3 +532,19 @@ def test_tui_forward_fingerprint(monkeypatch):
|
||||
result = runner.invoke(app, ["--fingerprint", "abc"])
|
||||
assert result.exit_code == 0
|
||||
assert called.get("fp") == "abc"
|
||||
|
||||
|
||||
def test_gui_command(monkeypatch):
|
||||
called = {}
|
||||
|
||||
def fake_main():
|
||||
called["called"] = True
|
||||
|
||||
monkeypatch.setitem(
|
||||
sys.modules,
|
||||
"seedpass_gui.app",
|
||||
SimpleNamespace(main=fake_main),
|
||||
)
|
||||
result = runner.invoke(app, ["gui"])
|
||||
assert result.exit_code == 0
|
||||
assert called.get("called") is True
|
||||
Reference in new issue
Block a user