test: read long verification report paths portably
This commit is contained in:
1 parent
b2a84404d8
commit
846c4b92e9
1 file changed
+2
-1
@@ -52,10 +52,11 @@ def test_historical_pin_evidence_reports_the_detected_change(tmp_path,change,lab
|
||||
|
||||
|
||||
def test_report_filename_limit_does_not_depend_on_destination_name(tmp_path):
|
||||
from dx_productivity.trial_task_center.path_access import internal_path
|
||||
from dx_productivity.trial_task_center.verification.report import render_item_report
|
||||
path=tmp_path/('r'*235+'.html')
|
||||
assert render_item_report({},path)==path
|
||||
assert path.read_text(encoding='utf-8').startswith('<!doctype html>')
|
||||
assert internal_path(path).read_text(encoding='utf-8').startswith('<!doctype html>')
|
||||
assert list(tmp_path.iterdir())==[path]
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user