summaryrefslogtreecommitdiff
path: root/functional_tests
diff options
context:
space:
mode:
authorkumar <kumar.mcmillan@gmail.com>2011-07-27 17:22:38 -0500
committerkumar <kumar.mcmillan@gmail.com>2011-07-27 17:22:38 -0500
commit8b0e110403166a9425209a8c532811949bfecf67 (patch)
treeade60709f16d6f95a120761eb858759c305932b7 /functional_tests
parent7d021e2d253510bfde8373f5665c96c022c32472 (diff)
downloadnose-8b0e110403166a9425209a8c532811949bfecf67.tar.gz
Fixes bad link to begin() in docs (#438)
Diffstat (limited to 'functional_tests')
-rw-r--r--functional_tests/doc_tests/test_init_plugin/init_plugin.rst10
1 files changed, 5 insertions, 5 deletions
diff --git a/functional_tests/doc_tests/test_init_plugin/init_plugin.rst b/functional_tests/doc_tests/test_init_plugin/init_plugin.rst
index 4f33ecb..f0d6074 100644
--- a/functional_tests/doc_tests/test_init_plugin/init_plugin.rst
+++ b/functional_tests/doc_tests/test_init_plugin/init_plugin.rst
@@ -4,7 +4,7 @@ Running Initialization Code Before the Test Run
Many applications, especially those using web frameworks like Pylons_
or Django_, can't be tested without first being configured or
otherwise initialized. Plugins can fulfill this requirement by
-implementing `begin()`_.
+implementing :meth:`begin() <nose.plugins.base.IPluginInterface.begin>`.
In this example, we'll use a very simple example: a widget class that
can't be tested without a configuration.
@@ -86,9 +86,10 @@ the tests fail.
FAILED (errors=2)
To configure the widget system before running tests, write a plugin
-that implements `begin()`_ and initializes the system with a
-hard-coded configuration. (Later, we'll write a better plugin that
-accepts a command-line argument specifying the configuration file.)
+that implements :meth:`begin() <nose.plugins.base.IPluginInterface.begin>`
+and initializes the system with a hard-coded configuration. (Later, we'll
+write a better plugin that accepts a command-line argument specifying the
+configuration file.)
>>> from nose.plugins import Plugin
>>> class ConfiguringPlugin(Plugin):
@@ -161,4 +162,3 @@ resetting the widget system to an unconfigured state.
.. _Pylons: http://pylonshq.com/
.. _Django: http://www.djangoproject.com/
-.. _`begin()`: plugin_interface.html#begin