Skip to content

Commit

Permalink
Use dedicated structure() func, instead of using cattrs directly
Browse files Browse the repository at this point in the history
  • Loading branch information
justvanrossum committed Dec 2, 2023
1 parent 57d0121 commit 7837717
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_font.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
from dataclasses import asdict
from importlib.metadata import entry_points

import cattrs
import pytest
from fontra.core.classes import (
GlobalAxis,
Expand All @@ -14,6 +13,7 @@
Source,
StaticGlyph,
VariableGlyph,
structure,
)

from fontra_rcjk.base import makeSafeLayerName
Expand Down Expand Up @@ -396,7 +396,7 @@ async def test_getGlyphMap(backendName, numGlyphs, testMapping):
@pytest.mark.asyncio
@pytest.mark.parametrize("backendName, expectedGlyph", getGlyphTestData)
async def test_getGlyph(backendName, expectedGlyph):
expectedGlyph = cattrs.structure(expectedGlyph, VariableGlyph)
expectedGlyph = structure(expectedGlyph, VariableGlyph)
font = getTestFont(backendName)
with contextlib.closing(font):
glyph = await font.getGlyph(expectedGlyph.name)
Expand Down

0 comments on commit 7837717

Please sign in to comment.