Skip to content

Commit 95d4210

Browse files
authored
Updated badges
1 parent ca747f3 commit 95d4210

File tree

1 file changed

+14
-32
lines changed

1 file changed

+14
-32
lines changed

README.rst

Lines changed: 14 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
|Travis Build Status| |AppVeyor Build status| |Coveralls coverage|
1+
|Travis Build Status| |AppVeyor Build status| |Coverage|
22

33
About
44
-----
@@ -30,21 +30,15 @@ This plugin is compatible with Python 2.7, and 3.5 and later, and
3030
requires `pytest <http://pytest.org>`__ and
3131
`numpy <http://www.numpy.org>`__ to be installed.
3232

33-
To install, you can do:
34-
35-
::
33+
To install, you can do::
3634

3735
pip install pytest-arraydiff
3836

39-
You can check that the plugin is registered with pytest by doing:
40-
41-
::
37+
You can check that the plugin is registered with pytest by doing::
4238

4339
py.test --version
4440

45-
which will show a list of plugins:
46-
47-
::
41+
which will show a list of plugins::
4842

4943
This is pytest version 2.7.1, imported from ...
5044
setuptools registered plugins:
@@ -55,9 +49,7 @@ Using
5549

5650
To use, you simply need to mark the function where you want to compare
5751
arrays using ``@pytest.mark.array_compare``, and make sure that the
58-
function returns a plain Numpy array:
59-
60-
::
52+
function returns a plain Numpy array::
6153

6254
python
6355
import pytest
@@ -69,9 +61,7 @@ function returns a plain Numpy array:
6961

7062
To generate the reference data files, run the tests with the
7163
``--arraydiff-generate-path`` option with the name of the directory
72-
where the generated files should be placed:
73-
74-
::
64+
where the generated files should be placed::
7565

7666
py.test --arraydiff-generate-path=reference
7767

@@ -85,9 +75,7 @@ to a sub-directory called ``reference`` relative to the test files (this
8575
name is configurable, see below). You can also generate the baseline
8676
arrays directly in the right directory.
8777

88-
You can then run the tests simply with:
89-
90-
::
78+
You can then run the tests simply with::
9179

9280
py.test --arraydiff
9381

@@ -153,9 +141,7 @@ also be a URL (which should start with ``http://`` or ``https://`` and
153141
end in a slash).
154142

155143
Finally, you can also set a custom baseline directory globally when
156-
running tests by running ``py.test`` with:
157-
158-
::
144+
running tests by running ``py.test`` with::
159145

160146
py.test --arraydiff --arraydiff-reference-path=baseline_arrays
161147

@@ -169,9 +155,7 @@ Test failure example
169155

170156
If the arrays produced by the tests are correct, then the test will
171157
pass, but if they are not, the test will fail with a message similar to
172-
the following:
173-
174-
::
158+
the following::
175159

176160
E AssertionError:
177161
E
@@ -195,9 +179,7 @@ Running the tests for pytest-arraydiff
195179
--------------------------------------
196180

197181
If you are contributing some changes and want to run the tests, first
198-
install the latest version of the plugin then do:
199-
200-
::
182+
install the latest version of the plugin then do::
201183

202184
cd tests
203185
py.test --arraydiff
@@ -207,7 +189,7 @@ plugin is correctly loaded as part of the test suite.
207189

208190
.. |Travis Build Status| image:: https://travis-ci.org/astrofrog/pytest-arraydiff.svg?branch=master
209191
:target: https://travis-ci.org/astrofrog/pytest-arraydiff
210-
.. |AppVeyor Build status| image:: https://ci.appveyor.com/api/projects/status/4hfoe954rxhgslsl/branch/master?svg=true
211-
:target: https://ci.appveyor.com/project/astrofrog/pytest-arraydiff
212-
.. |Coveralls coverage| image:: https://coveralls.io/repos/matplotlib/pytest-arraydiff/badge.svg
213-
:target: https://coveralls.io/r/matplotlib/pytest-arraydiff
192+
.. |AppVeyor Build status| image:: https://ci.appveyor.com/api/projects/status/0nech6qgp8jlabjp/branch/master?svg=true
193+
:target: https://ci.appveyor.com/project/astropy/pytest-arraydiff
194+
.. |Coverage| image:: https://codecov.io/gh/astropy/pytest-arraydiff/branch/master/graph/badge.svg
195+
:target: https://codecov.io/gh/astropy/pytest-arraydiff

0 commit comments

Comments
 (0)