test: align native lifecycle fixtures with validated source identities
This commit is contained in:
1 parent
2149e71b67
commit
f964ff347c
3 files changed
+10
-5
No files matched your search
@@ -109,7 +109,12 @@ def test_real_file_error_preserves_failed_item_and_allows_an_independent_item(tr
|
||||
return assets(source, expected_library)
|
||||
monkeypatch.setattr(identity, 'asset_identity', read_assets)
|
||||
adapter = _OwnedFixtureManagementAdapter(root, 'owned')
|
||||
results = run_management_batch([request, replace(request, name='Other')], adapter=adapter,
|
||||
from test_management import project
|
||||
other_source = project(request.source.parent.parent/'other-source', name='Other')
|
||||
for path in (other_source, other_source.parent/'PCB/pcb.prj'):
|
||||
with path.open('a') as stream:
|
||||
stream.write(f'KEY CentralLibrary "{request.library}"\n')
|
||||
results = run_management_batch([request, replace(request, name='Other', source=other_source)], adapter=adapter,
|
||||
idle_check=lambda *_: None)
|
||||
assert [r.status for r in results] == ['RECOVERY_REQUIRED', 'UPLOADED']
|
||||
assert all(r.safe_to_continue for r in results)
|
||||
|
||||
Reference in new issue
Block a user