Skip to content
This repository was archived by the owner on Oct 30, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion tests/test_manifests.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ def rejects(self, document):
def test_all_fixtures_validate_with_local_receipts(self):
paths = list(DISTRO.glob('*.toml')) + list(MINIMAL.glob('*.toml'))
paths += list((CLI / 'tests/fixtures/developer').glob('*.toml'))
paths += [device_path('j71b')]
# An installed package may be reached through a virtualenv lib64 link.
paths += [device_path('j71b').resolve()]
for path in paths:
with self.subTest(path=path):
verify_local_receipts(load(path), path.parent)
Expand Down
6 changes: 3 additions & 3 deletions tests/test_package_boundaries.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from unittest.mock import Mock, patch

from orchard_cli import firmware
from orchard_cli.apple import usb, ipsw
from orchard_cli.apple import usb
from orchard_cli.progress import Clock
from orchard_cli.state import DeviceState

Expand All @@ -35,11 +35,11 @@ def find_spec(self, name, path=None, target=None):
sys.meta_path.insert(0, NoBoard())
from orchard_cli import downloads, firmware, http, integrity
from orchard_cli.transports import ssh
from orchard_cli.apple import adt_tree, adt_capture, macho, osserialize, ipsw, usb, boot
from orchard_cli.apple import adt_tree, adt_capture, macho, osserialize, remote_ipsw, udif, apfs, lzfse, usb, boot
from orchard_hardware.apple import adt
from orchard_cli.command import main
sys.argv=['orchard','distros'];main()
sys.argv=['orchard','resolve',MANIFEST];main()
sys.argv=['orchard','resolve',MANIFEST,'--profile','j71b'];main()
'''.replace('MANIFEST', repr(str(FIXTURE.resolve())))
with tempfile.TemporaryDirectory() as store:
result = subprocess.run([sys.executable, '-I', '-c', script], cwd=store,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ def guard(event, args):

sys.addaudithook(guard)
from orchard_cli.command import main
sys.argv = ['orchard', 'resolve', INPUT]
sys.argv = ['orchard', 'resolve', INPUT, '--profile', 'j71b']
main()
'''.replace('BLOCKED', repr([str(path) for path in blocked])).replace('INPUT', repr(str(inputs / 'index.toml')))
env = {**os.environ, 'ORCHARD_HOME': str(self.root / 'isolated-store'), 'PYTHONDONTWRITEBYTECODE': '1'}
Expand Down