Skip to content

Commit bfffbc8

Browse files
committed
Tests: moved data to tests/data
1 parent 523006c commit bfffbc8

28 files changed

+52
-60
lines changed

plotpy/tests/__init__.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,19 @@
88
===================
99
"""
1010

11+
import os.path as osp
1112

12-
def run():
13+
from guidata.configtools import get_module_data_path
14+
15+
TESTDATAPATH = get_module_data_path("plotpy", osp.join("tests", "data"))
16+
17+
18+
def get_path(filename: str) -> str:
19+
"""Return absolute path of test file"""
20+
return osp.join(TESTDATAPATH, filename)
21+
22+
23+
def run() -> None:
1324
"""Run plotpy test launcher"""
1425
from guidata.guitest import run_testlauncher
1526

plotpy/tests/gui/contrast.png

-112 KB
Binary file not shown.

0 commit comments

Comments
 (0)