Complete action runtime rewrite
This commit is contained in:
@@ -7,7 +7,7 @@ from flow.core.console import Console
|
||||
from flow.core.errors import FlowError
|
||||
from flow.core.platform import PlatformInfo
|
||||
from flow.core.runtime import SystemRuntime
|
||||
from flow.services.bootstrap import BootstrapService
|
||||
from flow.app.bootstrap import BootstrapService
|
||||
|
||||
|
||||
def _make_ctx(manifest=None):
|
||||
@@ -74,8 +74,8 @@ class TestBootstrapService:
|
||||
def install(self, packages, *, dry_run=False):
|
||||
captured["packages"] = packages
|
||||
|
||||
monkeypatch.setattr("flow.services.packages.PackageService", StubPackageService)
|
||||
monkeypatch.setattr("flow.services.dotfiles.DotfilesService.link", lambda self, profile=None: None)
|
||||
monkeypatch.setattr("flow.app.packages.PackageService", StubPackageService)
|
||||
monkeypatch.setattr("flow.app.dotfiles.DotfilesService.link", lambda self, profile=None: None)
|
||||
|
||||
manifest = {
|
||||
"profiles": {
|
||||
@@ -116,7 +116,7 @@ class TestBootstrapService:
|
||||
def test_run_uses_dotfiles_profile_override(self, monkeypatch):
|
||||
captured = {}
|
||||
|
||||
monkeypatch.setattr("flow.services.packages.PackageService.install", lambda self, packages, dry_run=False: None)
|
||||
monkeypatch.setattr("flow.app.packages.PackageService.install", lambda self, packages, dry_run=False: None)
|
||||
|
||||
class StubDotfilesService:
|
||||
def __init__(self, ctx):
|
||||
@@ -125,7 +125,7 @@ class TestBootstrapService:
|
||||
def link(self, profile=None):
|
||||
captured["profile"] = profile
|
||||
|
||||
monkeypatch.setattr("flow.services.dotfiles.DotfilesService", StubDotfilesService)
|
||||
monkeypatch.setattr("flow.app.dotfiles.DotfilesService", StubDotfilesService)
|
||||
|
||||
manifest = {
|
||||
"profiles": {
|
||||
|
||||
Reference in New Issue
Block a user