New paste Repaste Download
actual = 'pathops-tricky-path-before.svg'
expected_result = 'pathops-tricky-path-nano.svg'
    @pytest.mark.parametrize(
        "actual, expected_result",
        [
            ("stroke-simplepath-before.svg", "stroke-simplepath-nano.svg"),
            ("stroke-path-before.svg", "stroke-path-nano.svg"),
            ("stroke-capjoinmiterlimit-before.svg", "stroke-capjoinmiterlimit-nano.svg"),
            ("scale-strokes-before.svg", "scale-strokes-nano.svg"),
            ("stroke-fill-opacity-before.svg", "stroke-fill-opacity-nano.svg"),
            ("stroke-dasharray-before.svg", "stroke-dasharray-nano.svg"),
            ("stroke-circle-dasharray-before.svg", "stroke-circle-dasharray-nano.svg"),
            ("clip-rect.svg", "clip-rect-clipped-nano.svg"),
            ("clip-ellipse.svg", "clip-ellipse-clipped-nano.svg"),
            ("clip-curves.svg", "clip-curves-clipped-nano.svg"),
            ("clip-multirect.svg", "clip-multirect-clipped-nano.svg"),
            ("clip-groups.svg", "clip-groups-clipped-nano.svg"),
            ("clip-use.svg", "clip-use-clipped-nano.svg"),
            ("clip-rule-evenodd.svg", "clip-rule-evenodd-clipped-nano.svg"),
            ("clip-clippath-attrs.svg", "clip-clippath-attrs-nano.svg"),
            ("rotated-rect.svg", "rotated-rect-nano.svg"),
            ("translate-rect.svg", "translate-rect-nano.svg"),
            ("ungroup-before.svg", "ungroup-nano.svg"),
            ("ungroup-multiple-children-before.svg", "ungroup-multiple-children-nano.svg"),
            ("group-stroke-before.svg", "group-stroke-nano.svg"),
            ("arcs-before.svg", "arcs-nano.svg"),
            ("invisible-before.svg", "invisible-nano.svg"),
            ("transform-before.svg", "transform-nano.svg"),
            ("group-data-name-before.svg", "group-data-name-nano.svg"),
            ("matrix-before.svg", "matrix-nano.svg"),
            ("degenerate-before.svg", "degenerate-nano.svg"),
            ("fill-rule-evenodd-before.svg", "fill-rule-evenodd-nano.svg"),
            ("twemoji-lesotho-flag-before.svg", "twemoji-lesotho-flag-nano.svg"),
            ("inline-css-style-before.svg", "inline-css-style-nano.svg"),
            ("clipped-strokes-before.svg", "clipped-strokes-nano.svg"),
            ("drop-anon-symbols-before.svg", "drop-anon-symbols-nano.svg"),
            ("scale-strokes-before.svg", "scale-strokes-nano.svg"),
            ("ungroup-with-ids-before.svg", "ungroup-with-ids-nano.svg"),
            ("stroke-with-id-before.svg", "stroke-with-id-nano.svg"),
            ("drop-title-meta-desc-before.svg", "drop-title-meta-desc-nano.svg"),
            ("no-viewbox-before.svg", "no-viewbox-nano.svg"),
            ("decimal-viewbox-before.svg", "decimal-viewbox-nano.svg"),
            ("inkscape-noise-before.svg", "inkscape-noise-nano.svg"),
            ("flag-use-before.svg", "flag-use-nano.svg"),
            ("ungroup-transform-before.svg", "ungroup-transform-nano.svg"),
            ("pathops-tricky-path-before.svg", "pathops-tricky-path-nano.svg"),
            ("gradient-template-1-before.svg", "gradient-template-1-nano.svg"),
            ("nested-svg-slovenian-flag-before.svg", "nested-svg-slovenian-flag-nano.svg"),
            ("global-fill-none-before.svg", "global-fill-none-nano.svg"),
            ("stroke-polyline-before.svg", "stroke-polyline-nano.svg"),
            ("clip-the-clip-before.svg", "clip-the-clip-nano.svg"),
            ("ungroup-group-transform-before.svg", "ungroup-group-transform-nano.svg"),
            ("ungroup-transform-clip-before.svg", "ungroup-transform-clip-nano.svg"),
            (
                "ungroup-retain-for-opacity-before.svg",
                "ungroup-retain-for-opacity-nano.svg",
            ),
            (
                "transform-radial-userspaceonuse-before.svg",
                "transform-radial-userspaceonuse-nano.svg",
            ),
            (
                "transform-linear-objectbbox-before.svg",
                "transform-linear-objectbbox-nano.svg",
            ),
            (
                "transform-radial-objectbbox-before.svg",
                "transform-radial-objectbbox-nano.svg",
            ),
            (
                "illegal-inheritance-before.svg",
                "illegal-inheritance-nano.svg",
            ),
        ],
    )
    def test_topicosvg(actual, expected_result):
>       _test(actual, expected_result, lambda svg: svg.topicosvg())
tests/svg_test.py:262:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
actual = <picosvg.svg.SVG object at 0x7fdbc2755f70>
expected_result = <picosvg.svg.SVG object at 0x7fdbc2755640>
op = <function test_topicosvg.<locals>.<lambda> at 0x7fdbc2747670>
    def _test(actual, expected_result, op):
        actual = op(load_test_svg(actual))
        expected_result = load_test_svg(expected_result)
        drop_whitespace(actual)
        drop_whitespace(expected_result)
        print(f"A: {pretty_print(actual.toetree())}")
        print(f"E: {pretty_print(expected_result.toetree())}")
>       assert pretty_print(actual.toetree()) == pretty_print(expected_result.toetree())
E       assert '<svg xmlns="..."/>\n</svg>\n' == '<svg xmlns="..."/>\n</svg>\n'
E         
E         Skipping 9127 identical leading characters in diff, use -v to show
E         - 00" d="M1962.201,934.322 Q1959.118,931.56 1957.439,930.474 Q1951.916,926.898 1945.799,924.555 Q1941.342,922.848 1931.883,920.713 Q1929.703,920.221 1928.609,919.966 L1928.395,919.916 Q1915.197,916.834 1908.53,915.947 Q1897.433,914.471 1884.649,914.343 Q1876.111,914.257 1858.992,915.552 Q1858.871,915.561 1858.75,915.552 Q1841.652,914.256 1833.094,914.343 Q1820.307,914.472 1809.214,915.947 Q1802.546,916.834 1789.349,919.916 L1789.135,919.966 Q1788.041,920.221 1785.86,920.713 Q1776.4,922.848 1771.944,924.55...
E         
E         ...Full output truncated (3 lines hidden), use '-vv' to show
tests/svg_test.py:32: AssertionError
Filename: None. Size: 6kb. View raw, , hex, or download this file.

This paste expires on 2026-01-15 07:00:34.455745+00:00. Pasted through deprecated-web.