Skip to content

Commit

Permalink
rename unit test, add expected picosvg'ed file with xpacket stripped
Browse files Browse the repository at this point in the history
  • Loading branch information
anthrotype committed Feb 22, 2023
1 parent ad6f899 commit 67a8563
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
10 changes: 7 additions & 3 deletions tests/svg_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,10 @@ def test_resolve_use(actual, expected_result):
"strip_empty_subpath-before.svg",
"strip_empty_subpath-nano.svg",
),
(
"xpacket-before.svg",
"xpacket-nano.svg",
),
],
)
def test_topicosvg(actual, expected_result):
Expand Down Expand Up @@ -663,8 +667,8 @@ def test_topicosvg_ndigits(inplace):
)


def test_xpacket():
xpacket_svg = load_test_svg("xpacket.svg")
def test_remove_processing_instructions():
xpacket_svg = load_test_svg("xpacket-before.svg")
assert "xpacket" in xpacket_svg.tostring()
pico_svg = xpacket_svg.topicosvg()
pico_svg = xpacket_svg.remove_processing_instructions()
assert "xpacket" not in pico_svg.tostring()
File renamed without changes
4 changes: 4 additions & 0 deletions tests/xpacket-nano.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 67a8563

Please sign in to comment.