File: conftest.py

package info (click to toggle)
ezdxf 1.4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 104,528 kB
  • sloc: python: 182,341; makefile: 116; lisp: 20; ansic: 4
file content (16 lines) | stat: -rw-r--r-- 394 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#  Copyright (c) 2023, Manfred Moitzi
#  License: MIT License
import pytest

from ezdxf.fonts import fonts
from pathlib import Path


@pytest.fixture(scope="session", autouse=True)
def load_sut_font_cache():
    path = Path(__file__)
    font_folder = path.parent.parent / "fonts"
    if font_folder.exists():
        fonts.build_sut_font_manager_cache(font_folder)
    else:
        exit(666)