File tree Expand file tree Collapse file tree 3 files changed +29
-5
lines changed Expand file tree Collapse file tree 3 files changed +29
-5
lines changed Original file line number Diff line number Diff line change @@ -32,3 +32,15 @@ seaborn.despine(fig=fig)
32
32
```
33
33
34
34
![ Alt text] ( docs/img/example.png " Example axes ")
35
+
36
+ ## Testing
37
+
38
+ Testing is generally done via the `` nose `` and `` numpy.testing `` modules.
39
+ The best way to run the tests is in an interactive python session:
40
+
41
+ ``` python
42
+ import matplotlib
43
+ matplotib.use(' agg' )
44
+ import probscale
45
+ probscale.test()
46
+ ```
Original file line number Diff line number Diff line change @@ -54,22 +54,31 @@ Tutorial
54
54
55
55
tutorial/getting_started.rst
56
56
57
+ Testing
58
+ -------
59
+
60
+ It's easiest to run the tests from an interactive python session:
61
+
62
+ .. code-block :: python
63
+
64
+ import matplotlib
65
+ matplotlib.use(' agg' )
66
+ import probscale
67
+ probscale.test()
68
+
69
+
57
70
API References
58
71
--------------
59
72
60
73
.. toctree ::
61
74
:maxdepth: 2
62
75
63
- probscale.rst
64
76
viz.rst
65
-
66
-
67
-
77
+ probscale.rst
68
78
69
79
Indices and tables
70
80
==================
71
81
72
82
* :ref: `genindex `
73
83
* :ref: `modindex `
74
84
* :ref: `search `
75
-
Original file line number Diff line number Diff line change 4
4
from .probscale import ProbScale
5
5
6
6
scale .register_scale (ProbScale )
7
+
8
+ from numpy .testing import Tester
9
+ test = Tester ().test
You can’t perform that action at this time.
0 commit comments