(capsys)
| 73 | |
| 74 | |
| 75 | def test_factory_drawer_none(capsys): |
| 76 | pytest.importorskip("PIL", reason="Requires PIL") |
| 77 | with pytest.raises(SystemExit): |
| 78 | main("testtext --factory pil --factory-drawer nope".split()) |
| 79 | assert "The selected factory has no drawer aliases" in capsys.readouterr()[1] |
| 80 | |
| 81 | |
| 82 | def test_factory_drawer_bad(capsys): |