(tmpdir)
| 25 | |
| 26 | |
| 27 | def test_unicode_attachment_filename(tmpdir): |
| 28 | pad, builder = get_unicode_builder(tmpdir) |
| 29 | |
| 30 | with BufferReporter(builder.env) as reporter: |
| 31 | prog, _ = builder.build(pad.root.attachments.first()) |
| 32 | |
| 33 | failures = reporter.get_failures() |
| 34 | assert len(failures) == 0 |
| 35 | |
| 36 | with prog.artifacts[0].open("rb") as f: |
| 37 | assert f.read().rstrip() == b"attachment" |
| 38 | |
| 39 | |
| 40 | def test_bad_file_ignored(tmpdir): |
nothing calls this directly
no test coverage detected