Skip to content

Commit

Permalink
Update to the tip of test-utils, and update to the latest nose.
Browse files Browse the repository at this point in the history
Switch to unittest2-happy setUpClass names in test_search to jibe with updated test-utils.
  • Loading branch information
erikrose committed Aug 31, 2011
1 parent 3ff58fe commit 5a58d03
Show file tree
Hide file tree
Showing 180 changed files with 4,312 additions and 1,171 deletions.
8 changes: 4 additions & 4 deletions apps/search/tests/test_search.py
Expand Up @@ -41,8 +41,8 @@ class SphinxTestCase(TestCase):
'posts.json', 'questions.json']

@classmethod
def setup_class(cls):
super(SphinxTestCase, cls).setup_class()
def setUpClass(cls):
super(SphinxTestCase, cls).setUpClass()
if not settings.SPHINX_SEARCHD or not settings.SPHINX_INDEXER:
raise SkipTest()

Expand All @@ -60,9 +60,9 @@ def setup_class(cls):
time.sleep(1)

@classmethod
def teardown_class(cls):
def tearDownClass(cls):
stop_sphinx()
super(SphinxTestCase, cls).teardown_class()
super(SphinxTestCase, cls).tearDownClass()


def test_sphinx_down():
Expand Down
12 changes: 11 additions & 1 deletion vendor/packages/nose/AUTHORS
Expand Up @@ -10,4 +10,14 @@ Allen Bierbaum
Pam Zerbinos
Augie Fackler
Peter Fein
Kevin Mitchell
Kevin Mitchell
Alex Stewart
Timothee Peignier
Thomas Kluyver
Heng Liu
Rosen Diankov
Buck Golemon
Bobby Impollonia
Takafumi Arakaki
Peter Bengtsson
Gary Donovan
105 changes: 104 additions & 1 deletion vendor/packages/nose/CHANGELOG
@@ -1,3 +1,84 @@
1.1.2

- Fixed regression where the .coverage file was not saved (#439).
Patch by Timothée Peignier.

1.1.1

- Fixed missing nose.sphinx module in source distribution (#436).

1.1.0

- Revised multiprocessing implementation so that it works for test generators
(#399). Thanks to Rosen Diankov for the patch.
- More fixes to multiprocessing implemented by Buck Golemon and Gary Donovan
(also part of #399).
- Lots of improvements to the attrib plugin by Bobby Impollonia (#412, #411,
#324 and #381)
- Code coverage plugin now uses native HTML generation when coverage 3 is
installed (#264). Thanks to Timothée Peignier for the patch.
- Xunit plugin now shows test run time in fractions of a second (#317)
- @attr (from nose.plugins.attrib) can now be used as a class decorator (#292)
- Fixes Xunit plugin to handle non-UTF8 characters (#395)
- Fixes Xunit plugin for reporting generator tests (#369)
- Fixed problems with SkipTest in Python 3.2 (#389)
- Fixed bug in doctest plugin under python 3. Thanks to Thomas Kluyver
for the patch. (#391)
- Fixes mishandling of custom exceptions during failures (#405)
- Fixed subtle bug in :option:`--first-package-wins` that made it
unpredictable (#293)
- Fixes case where teardown_class() was called more than once (#408). Thanks
to Heng Liu for the patch.
- Fixes coverage module names -- 'cal' used to also match calendar which was a
bug (#433)
- Fixes capture plugin when exception message contains non-ascii chars (#402)
- Fixed bug in tests for twisted tools. Thanks to Thomas Kluyver
for the patch.
- Makes :option:`--plugins` more succinct when there are no options (#235)

1.0.0

- Made nose compatible with python 3. **Huge** thanks to Alex "foogod"
Stewart!

0.11.4

- Made nose compatible with Python 2.7.

0.11.3

- Fixed default plugin manager's use of plugin overriding. Thanks to
rob.daylife for the bug report and patch. (#323).

0.11.2

- Changed plugin loading so that external plugins loaded via extension
points can override builtin plugins with the same name.
- Updated multiprocess plugin and nose's packaging to allow multiprocess
plugin to work on Windows (#265).
- Fixed bug in xunit plugin's interaction with suites and errors in
module-level setup. Thanks to Mark McCague for the bug report (#279).
- Fixed bug in nose.loader.TestLoader that allowed Test classes that raise
exceptions in __init__ to crash the test run (#269).
- Fixed bugs in nose's test suite that caused spurious failures on Windows.
- Fixed bug in twisted tools: delayed calls were not shut down on
reactor stop. Thanks to abbeyj for the patch (#278).
- Fixed bug where root log handlers were not cleared. For example, this was
emitting unwanted messages when testing Google App Engine websites.
- Fixed bug in test names output by xunit plugin. Thanks to Philip
Jenvey for the bug report and patch (#280).
- Fixed bug in profile plugin that caused stats to fail to print under Python
2.5 and later. Thanks to djs at n-cube dot org for the bug report (#285).
- Improved logcapture filtering, with default setting to filter out log
messages from nose itself. Thanks to gfxmonk for the patch (#277).
- The xunit plugin now tags skipped tests with a <skipped> testcase tag, and
prevents the XML from containing invalid control characters.
- Updated nose to be compatible with python 2.7 (#305).
- Updated loading of usage document to allow nose to run from within
an egg archive (#288).
- Fixed IronPython checks to make nose compatible with more versions
of IronPython. Thanks to Kevin Mitchell for the patch (#316).

0.11.1

- Fixed bug in xunit plugin xml escaping. Thanks to Nat Williams for the bug
Expand All @@ -9,9 +90,31 @@
- Fixed bug in collect only plugin that caused it to fail when collecting from
test generators.
- Fixed some broken html in docs.

0.11

- **All new documentation!** nose's documentation is now generated by
Sphinx. And thanks to Pam Zerbinos, it is much better organized and easier
to use and read.
- Two new core commandline options can help with testing namespace
packages. :option:`--first-package-wins` is useful when you want to test one
part of a namespace package that uses another part; in previous versions of
nose, the other part of the namespace package would be evicted from
sys.modules when the 2nd loaded. :option:`--traverse-namespace` is useful if
you want nose to discover tests across entries in a package's
__path__. (This was formerly the default behavior).
- To make it easier to use custom plugins without needing setuptools,
:func:`nose.core.main` and :func:`nose.core.run` now support an
:doc:`addplugins <doc_tests/test_addplugins/test_addplugins>` keyword
argument that takes a list of additional plugins to make available. **Note**
that adding a plugin to this list **does not** activate or enable the
plugin, only makes it available to be enabled via command-line or
config file settings.
- Thanks to Kevin Mitchell, nose is now more compatible with
IronPython. IronPython is still not fully supported, but it should work. If
you'd like to improve nose's support for IronPython further, please join the
nose developer's list and volunteer to become the IronPython maintainer for
nose!
- Added multiprocess plugin that allows tests to be run in parallel
across multiple processes.
- Added logcapture plugin that captures logging messages and prints them with
Expand Down
15 changes: 0 additions & 15 deletions vendor/packages/nose/MANIFEST.in

This file was deleted.

10 changes: 4 additions & 6 deletions vendor/packages/nose/NEWS
@@ -1,7 +1,5 @@
0.10.3
------
1.0!
----

nose version 0.10.3 fixes a serious bug found in 0.10.2's nosetests
setuptools command, and updates the coverage plugin to be more
friendly to other plugins that trigger imports in begin(). Thanks to
Philip Jenvey and Ned Batchelder for reporting these issues.
nose version 1.0 adds support for python 3. The thanks of a grateful
nation go out to Alex Stewart, aka foogod, for all of his great work.
38 changes: 19 additions & 19 deletions vendor/packages/nose/PKG-INFO
@@ -1,32 +1,31 @@
Metadata-Version: 1.0
Name: nose
Version: 0.11.1
Version: 1.1.2
Summary: nose extends unittest to make testing easier
Home-page: http://somethingaboutorange.com/mrl/projects/nose/
Home-page: http://readthedocs.org/docs/nose/
Author: Jason Pellerin
Author-email: jpellerin+nose@gmail.com
License: GNU LGPL
Download-URL: http://somethingaboutorange.com/mrl/projects/nose/nose-0.11.1.tar.gz
Description: nose extends the test loading and running features of unittest, making
it easier to write, find and run tests.
it easier to write, find and run tests.

By default, nose will run tests in files or directories under the current
working directory whose names include "test" or "Test" at a word boundary
(like "test_this" or "functional_test" or "TestClass" but not
"libtest"). Test output is similar to that of unittest, but also includes
captured stdout output from failing tests, for easy print-style debugging.
By default, nose will run tests in files or directories under the current
working directory whose names include "test" or "Test" at a word boundary
(like "test_this" or "functional_test" or "TestClass" but not
"libtest"). Test output is similar to that of unittest, but also includes
captured stdout output from failing tests, for easy print-style debugging.

These features, and many more, are customizable through the use of
plugins. Plugins included with nose provide support for doctest, code
coverage and profiling, flexible attribute-based test selection,
output capture and more. More information about writing plugins may be
found on in the nose API documentation, here:
http://somethingaboutorange.com/mrl/projects/nose/

If you have recently reported a bug marked as fixed, or have a craving for
the very latest, you may want the unstable development version instead:
http://bitbucket.org/jpellerin/nose/get/tip.gz#egg=nose-dev
These features, and many more, are customizable through the use of
plugins. Plugins included with nose provide support for doctest, code
coverage and profiling, flexible attribute-based test selection,
output capture and more. More information about writing plugins may be
found on in the nose API documentation, here:
http://somethingaboutorange.com/mrl/projects/nose/

If you have recently reported a bug marked as fixed, or have a craving for
the very latest, you may want the unstable development version instead:
http://bitbucket.org/jpellerin/nose/get/tip.gz#egg=nose-dev

Keywords: test unittest doctest automatic discovery
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Expand All @@ -35,4 +34,5 @@ Classifier: License :: OSI Approved :: GNU Library or Lesser General Public Lice
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Software Development :: Testing
49 changes: 37 additions & 12 deletions vendor/packages/nose/README.txt
Expand Up @@ -104,18 +104,20 @@ Configuration
-------------

In addition to passing command-line options, you may also put
configuration options in a .noserc or nose.cfg file in your home
directory. These are standard .ini-style config files. Put your
nosetests configuration in a [nosetests] section. Options are the same
as on the command line, with the -- prefix removed. For options that
are simple switches, you must supply a value:
configuration options in your project's *setup.cfg* file, or a .noserc
or nose.cfg file in your home directory. In any of these standard
.ini-style config files, you put your nosetests configuration in a
``[nosetests]`` section. Options are the same as on the command line,
with the -- prefix removed. For options that are simple switches, you
must supply a value:

[nosetests]
verbosity=3
with-doctest=1

All configuration files that are found will be loaded and their
options combined.
options combined. You can override the standard config file loading
with the ``-c`` option.


Using Plugins
Expand All @@ -139,7 +141,7 @@ plugins keyword argument.
0.9 plugins
-----------

nose 0.11 can use SOME plugins that were written for nose 0.9. The
nose 1.0 can use SOME plugins that were written for nose 0.9. The
default plugin manager inserts a compatibility wrapper around 0.9
plugins that adapts the changed plugin api calls. However, plugins
that access nose internals are likely to fail, especially if they
Expand All @@ -151,10 +153,10 @@ plugin is trying to find out if the test is an instance of a class
that no longer exists.


0.10 plugins
------------
0.10 and 0.11 plugins
---------------------

All plugins written for nose 0.10 should work with nose 0.11.
All plugins written for nose 0.10 and 0.11 should work with nose 1.0.


Options
Expand Down Expand Up @@ -193,6 +195,14 @@ Options
in place of the current working directory, which is the default.
Others will be added to the list of tests to execute. [NOSE_WHERE]

--py3where=PY3WHERE

Look for tests in this directory under Python 3.x. Functions the
same as 'where', but only applies if running under Python 3.x or
above. Note that, if present under 3.x, this option completely
replaces any directories specified with 'where', so the 'where'
option becomes ineffective. [NOSE_PY3WHERE]

-m=REGEX, --match=REGEX, --testmatch=REGEX

Files, directories, function names, and class names that match this
Expand Down Expand Up @@ -221,6 +231,13 @@ Options
Load logging config from this file -- bypasses all other logging
config settings.

-I=REGEX, --ignore-files=REGEX

Completely ignore any file that matches this regular expression.
Takes precedence over any other settings or plugins. Specifying
this option will replace the default setting. Specify this option
multiple times to add more regular expressions [NOSE_IGNORE_FILES]

-e=REGEX, --exclude=REGEX

Don't run tests that match regular expression [NOSE_EXCLUDE]
Expand Down Expand Up @@ -255,7 +272,7 @@ Options

Traverse through all path entries of a namespace package

--first-package-wins=DEFAULT, --first-pkg-wins=DEFAULT, --1st-pkg-wins=DEFAULT
--first-package-wins, --first-pkg-wins, --1st-pkg-wins

nose's importer will normally evict a package from sys.modules if
it sees a package with the same name in a different location. Set
Expand Down Expand Up @@ -297,7 +314,9 @@ Options
filter out needless output. Example: filter=foo will capture
statements issued ONLY to foo or foo.what.ever.sub but not foobar
or other logger. Specify multiple loggers with comma:
filter=foo,bar,baz. [NOSE_LOGFILTER]
filter=foo,bar,baz. If any logger name is prefixed with a minus, eg
filter=-foo, it will be excluded rather than included. Default:
exclude logging messages from nose itself (-nose). [NOSE_LOGFILTER]

--logging-clear-handlers

Expand Down Expand Up @@ -436,6 +455,12 @@ Options
Set timeout for return of results from each test runner process.
[NOSE_PROCESS_TIMEOUT]

--process-restartworker

If set, will restart each worker process once their tests are done,
this helps control memory leaks from killing the system.
[NOSE_PROCESS_RESTARTWORKER]

--with-xunit

Enable plugin Xunit: This plugin provides test results in the
Expand Down
Empty file modified vendor/packages/nose/bin/nosetests 100644 → 100755
Empty file.

0 comments on commit 5a58d03

Please sign in to comment.