Record successful BUG-20 trial and display remediation handoffs
This commit is contained in:
1 parent
22fe68c976
commit
57984e5793
4 files changed
+240
-2
No files matched your search
@@ -55,3 +55,17 @@ def test_reserved_filename_never_overwrites_package_payload(make_package,tmp_pat
|
||||
with pytest.raises(ValueError,match='reserved'):
|
||||
review.create(p,dest)
|
||||
assert not dest.exists()
|
||||
|
||||
|
||||
def test_completed_package_displays_coding_and_human_handoffs(make_package,manifest,tmp_path):
|
||||
manifest['artifacts'].update(change_request='handoffs/coding.json',human_dev_request='handoffs/human.md')
|
||||
p=make_package(document=manifest,entries={
|
||||
'handoffs/coding.json':json.dumps({'assignment':'assigned','request':{
|
||||
'required_change':'SQL template with placeholders','placeholders':[{'token':'{{POSITION_X}}'}]}}),
|
||||
'handoffs/human.md':'# Human\n\nResearch or define suitable coordinates.\n<script>bad()</script>'})
|
||||
output=review.create(p,tmp_path/'view')
|
||||
html=output.read_text(encoding='utf8')
|
||||
assert 'href="#handoffs"' in html
|
||||
assert 'SQL template with placeholders' in html and '{{POSITION_X}}' in html
|
||||
assert 'Research or define suitable coordinates.' in html
|
||||
assert '<script>bad()' not in html and '<script>' in html
|
||||
Reference in new issue
Block a user