docs: Fix testing example

This commit is contained in:
Stein Magnus Jodal 2018-04-08 21:06:08 +02:00
parent 18b828481f
commit b3d9d7106e

View File

@ -586,7 +586,7 @@ Test cases for checking the definition of the extension should ensure that:
An example of what these tests could look like is provided below:: An example of what these tests could look like is provided below::
def test_get_default_config(self): def test_get_default_config():
ext = Extension() ext = Extension()
config = ext.get_default_config() config = ext.get_default_config()
@ -596,7 +596,7 @@ An example of what these tests could look like is provided below::
assert 'param_2 = value_2' in config assert 'param_2 = value_2' in config
assert 'param_n = value_n' in config assert 'param_n = value_n' in config
def test_get_config_schema(self): def test_get_config_schema():
ext = Extension() ext = Extension()
schema = ext.get_config_schema() schema = ext.get_config_schema()
@ -605,7 +605,7 @@ An example of what these tests could look like is provided below::
assert 'param_2' in schema assert 'param_2' in schema
assert 'param_n' in schema assert 'param_n' in schema
def test_setup(self): def test_setup():
registry = mock.Mock() registry = mock.Mock()
ext = Extension() ext = Extension()
@ -783,4 +783,4 @@ the events fire::
For further details and examples, refer to the For further details and examples, refer to the
`/tests <https://github.com/mopidy/mopidy/tree/develop/tests>`_ `/tests <https://github.com/mopidy/mopidy/tree/develop/tests>`_
directory on the Mopidy development branch. directory on the Mopidy development branch.