mirror of
https://github.com/spoopyghosty0/frameport.git
synced 2026-10-24 21:01:52 +02:00
Steam library: Later is the default when FramePort runs on the Frame itself, and the waiting step says how to add the games now (#425)
This commit is contained in:
1 parent
890b2bc615
commit
2ecaa56ead
6 files changed
+40
-13
No files matched your search
@@ -57,3 +57,17 @@ def test_restart_steam_cli_confirmation(monkeypatch):
|
||||
calls.clear()
|
||||
result = CliRunner().invoke(cli.app, ["frame", "restart-steam"], input="y\n")
|
||||
assert result.exit_code == 0 and calls == [{"confirm": False}, {"confirm": True}]
|
||||
|
||||
|
||||
def test_steam_library_defaults_to_later_on_the_frame(monkeypatch):
|
||||
"""GitHub #425: with Now, FramePort on the Frame waited for itself to close before Steam could restart."""
|
||||
from frameport.core import library
|
||||
from frameport.install import installer
|
||||
|
||||
monkeypatch.setattr("frameport.frame.local.on_frame", lambda: True)
|
||||
assert installer.steam_library_mode() == "later"
|
||||
monkeypatch.setattr("frameport.frame.local.on_frame", lambda: False)
|
||||
assert installer.steam_library_mode() == "now"
|
||||
library.set_setting("install.steam_library", "now")
|
||||
monkeypatch.setattr("frameport.frame.local.on_frame", lambda: True)
|
||||
assert installer.steam_library_mode() == "now" # a choice the user made wins
|
||||
Reference in new issue
Block a user