diff options
| author | ianb <devnull@localhost> | 2008-06-12 17:36:10 +0000 |
|---|---|---|
| committer | ianb <devnull@localhost> | 2008-06-12 17:36:10 +0000 |
| commit | 47063317b03a2f64bc0b484b8b8ff8de17b147cd (patch) | |
| tree | 95196a18b4dcc5259a47e39349474d31ad0b91ad /docs | |
| parent | 3710eb7974cf55018257a613314ece658784d79d (diff) | |
| download | paste-47063317b03a2f64bc0b484b8b8ff8de17b147cd.tar.gz | |
deprecate setup_module
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/news.txt | 2 | ||||
| -rw-r--r-- | docs/testing-applications.txt | 25 |
2 files changed, 2 insertions, 25 deletions
diff --git a/docs/news.txt b/docs/news.txt index cb0ec15..cfa5146 100644 --- a/docs/news.txt +++ b/docs/news.txt @@ -10,6 +10,8 @@ svn trunk :class:`paste.urlparser.StaticURLParser` (before passing a relative-to-cwd path to that class would cause Forbidden errors). +* Deprecate :func:`paste.fixture.setup_module` + 1.7 --- diff --git a/docs/testing-applications.txt b/docs/testing-applications.txt index b0594ee..6de928f 100644 --- a/docs/testing-applications.txt +++ b/docs/testing-applications.txt @@ -21,31 +21,6 @@ easily and without a server. .. include:: include/contact.txt -The Test Environment -==================== - -This has been written with `py.test -<http://codespeak.net/py/current/doc/test.html>`_ in mind. The -py.test convention is to put tests in modules named ``test_*.py``, and -the actual test functions are also named starting with ``test_``. - -In your testing module you should do:: - - from paste.fixture import setup_module - -This will add some initialization, will load your configure, will call -a ``reset_state`` function if you define one, and will insert the -variables ``app`` and ``CONFIG`` in your module. - -If you have path problems you can set ``$PYTHONPATH``, or you can add -something to a ``conftest.py`` module, like:: - - import sys - sys.path.append('path/to/Paste', ...) - -Note that paths given in the ``sys_path`` configuration item will also -be loaded (but Paste itself must be found first). - The Tests Themselves ==================== |
