fix: persist problem-pass safety rejections without losing progress
This commit is contained in:
1 parent
4ee7b768bd
commit
422d5483bc
5 files changed
+168
-55
No files matched your search
@@ -56,6 +56,17 @@ def test_new_raw_rule_freezes_two_equal_value_targets_as_separate_uids(scope_cas
|
||||
assert _queue_matches_inputs(handoff.command_path, _read_commands(handoff.command_path), (project,), rules)
|
||||
|
||||
|
||||
@pytest.mark.parametrize('read_failed', [False, True])
|
||||
def test_missing_project_sheet_manifest_is_a_controlled_scope_error(scope_case, read_failed):
|
||||
from dx_productivity.trial_task_center.component_scope import freeze
|
||||
preparer, project, rules, *_ = scope_case
|
||||
key = _path_key(project.path)
|
||||
discovery = preparer.discover_project(project.path, ('OLD',), collect_components=True)
|
||||
with pytest.raises(TaskCenterError, match='component_scope'):
|
||||
freeze((project,), rules, {}, {key: discovery}, {key} if read_failed else set(), 'preserve')
|
||||
assert not (preparer.data_root / 'quick-run/command.tsv').exists()
|
||||
|
||||
|
||||
@pytest.mark.parametrize('change', [{'custom_value_enabled': True, 'custom_value': 'changed'}, {'sync_nc': False}, {'target_cell': 'QFN'}])
|
||||
def test_original_source_rule_option_changes_cannot_resume_frozen_scope(scope_case, change):
|
||||
preparer, project, rules, *_ = scope_case
|
||||
|
||||
Reference in new issue
Block a user