Skip to content

Commit

Permalink
[#1483] add extension writing tip about avoiding plugin importing
Browse files Browse the repository at this point in the history
  • Loading branch information
joetsoi committed Jan 30, 2014
1 parent 866b0b6 commit 8cea2b7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions doc/extensions/testing-extensions.rst
Expand Up @@ -61,6 +61,12 @@ Some notes on how these tests work:

* The Pylons book also has a `chapter on testing <http://pylonsbook.com/en/1.0/testing.html>`_.

* Avoid importing the plugin modules directly into your test modules
(e.g from example_iauthfunctions import plugin_v5_custom_config_setting).
This causes the plugin to be registered and loaded before the entire test run,
so the plugin will be loaded for all tests. This can cause conflicts and
test failures.

.. todo::

Link to CKAN guidelines for *how* to write tests, once those guidelines have
Expand Down

0 comments on commit 8cea2b7

Please sign in to comment.