move Lib/cu2qu/test to tests/ folder
There is no need to install the test suite with the package. Let's put it outside like it's recommended by pytest.
This commit is contained in:
parent
af0a06081a
commit
9be3901795
@ -39,7 +39,7 @@ license_file = LICENSE
|
||||
[tool:pytest]
|
||||
minversion = 2.8
|
||||
testpaths =
|
||||
Lib/cu2qu
|
||||
tests
|
||||
python_files =
|
||||
*_test.py
|
||||
python_classes =
|
||||
|
@ -2,7 +2,7 @@ import os
|
||||
from ufoLib.glifLib import GlyphSet
|
||||
import pkg_resources
|
||||
|
||||
DATADIR = pkg_resources.resource_filename('cu2qu.test', 'data')
|
||||
DATADIR = os.path.join(os.path.dirname(__file__), 'data')
|
||||
CUBIC_GLYPHS = GlyphSet(os.path.join(DATADIR, 'cubic'))
|
||||
QUAD_GLYPHS = GlyphSet(os.path.join(DATADIR, 'quadratic'))
|
||||
|
@ -22,7 +22,7 @@ import os
|
||||
import json
|
||||
|
||||
from cu2qu import curve_to_quadratic, curves_to_quadratic
|
||||
from cu2qu.test import DATADIR
|
||||
from . import DATADIR
|
||||
|
||||
|
||||
MAX_ERR = 5
|
@ -2,9 +2,9 @@ from __future__ import print_function, division, absolute_import
|
||||
import unittest
|
||||
|
||||
from cu2qu.pens import Cu2QuPen, Cu2QuPointPen
|
||||
from cu2qu.test import CUBIC_GLYPHS, QUAD_GLYPHS
|
||||
from cu2qu.test.utils import DummyGlyph, DummyPointGlyph
|
||||
from cu2qu.test.utils import DummyPen, DummyPointPen
|
||||
from . import CUBIC_GLYPHS, QUAD_GLYPHS
|
||||
from .utils import DummyGlyph, DummyPointGlyph
|
||||
from .utils import DummyPen, DummyPointPen
|
||||
|
||||
MAX_ERR = 1.0
|
||||
|
@ -1,5 +1,5 @@
|
||||
from __future__ import print_function, division, absolute_import
|
||||
from cu2qu.test import CUBIC_GLYPHS
|
||||
from . import CUBIC_GLYPHS
|
||||
from ufoLib.pointPen import PointToSegmentPen, SegmentToPointPen
|
||||
import unittest
|
||||
|
@ -19,9 +19,10 @@ import os
|
||||
import random
|
||||
|
||||
from benchmark import run_benchmark
|
||||
from cu2qu.test import DATADIR
|
||||
|
||||
MAX_ERR_EM = 0.002
|
||||
DATADIR = os.path.join(
|
||||
os.path.dirname(__file__), os.path.pardir, 'tests', 'data')
|
||||
|
||||
|
||||
def setup_fonts_to_quadratic_defcon():
|
||||
|
Loading…
x
Reference in New Issue
Block a user