File tree Expand file tree Collapse file tree 2 files changed +27
-0
lines changed
Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Original file line number Diff line number Diff line change 1+ # Copyright 2021 Adobe. All rights reserved.
2+
3+ import os
4+ import pytest
5+
6+
7+ @pytest .fixture
8+ def fonts_dir ():
9+ root_dir = os .path .dirname (os .path .dirname (__file__ ))
10+ yield os .path .join (root_dir , 'fonts' )
11+
12+
13+ @pytest .fixture
14+ def base_font_path (fonts_dir ):
15+ yield os .path .join (fonts_dir , 'Zebrawood.otf' )
Original file line number Diff line number Diff line change 1+ # Copyright 2021 Adobe. All rights reserved.
2+
3+ import pytest
4+
5+ from opentypesvg .dumpsvg import main
6+
7+
8+ def test_font_without_svg_table (base_font_path , capsys ):
9+ with pytest .raises (SystemExit ):
10+ main ([base_font_path ])
11+ captured = capsys .readouterr ()
12+ assert captured .err == "ERROR: The font does not have the SVG table.\n "
You can’t perform that action at this time.
0 commit comments