Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 13ab5fc

Browse files
authored
Merge pull request #24247 from QuLogic/split-toolkit-tests
Split toolkit tests into their toolkits
2 parents b2c4964 + dcc2a8d commit 13ab5fc

File tree

100 files changed

+30
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+30
-1
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
from pathlib import Path
2+
3+
4+
# Check that the test directories exist
5+
if not (Path(__file__).parent / "baseline_images").exists():
6+
raise IOError(
7+
'The baseline image directory does not exist. '
8+
'This is most likely because the test data is not installed. '
9+
'You may need to install matplotlib from source to get the '
10+
'test data.')
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
from matplotlib.testing.conftest import (mpl_test_settings, # noqa
2+
pytest_configure, pytest_unconfigure)
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
from pathlib import Path
2+
3+
4+
# Check that the test directories exist
5+
if not (Path(__file__).parent / "baseline_images").exists():
6+
raise IOError(
7+
'The baseline image directory does not exist. '
8+
'This is most likely because the test data is not installed. '
9+
'You may need to install matplotlib from source to get the '
10+
'test data.')
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
from matplotlib.testing.conftest import (mpl_test_settings, # noqa
2+
pytest_configure, pytest_unconfigure)

setupext.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,12 @@ def get_package_data(self):
487487
'tests/test_*.ipynb',
488488
],
489489
'mpl_toolkits': [
490-
*_pkg_data_helper('mpl_toolkits', 'tests/baseline_images'),
490+
*_pkg_data_helper('mpl_toolkits/axes_grid1',
491+
'tests/baseline_images'),
492+
*_pkg_data_helper('mpl_toolkits/axisartist'
493+
'tests/baseline_images'),
494+
*_pkg_data_helper('mpl_toolkits/mplot3d'
495+
'tests/baseline_images'),
491496
]
492497
}
493498

0 commit comments

Comments
 (0)