holger krekel
|
f2c8a837af
|
fix issue106: allow parametrize to be applied per-class/per-module
|
2011-12-28 15:47:19 +00:00 |
holger krekel
|
f2791988f9
|
fix issue102: report more useful errors and hints for when a
test directory was renamed and some pyc/__pycache__ remain
|
2011-12-20 12:20:59 +00:00 |
holger krekel
|
82ba764bb6
|
fix unorderable types as reported by Ralf Schmitt
|
2011-12-14 10:56:51 +00:00 |
Jurko Gospodnetić
|
af0edf0d10
|
Documentation cleanup - corrected typos & minor stylistic changes.
|
2011-12-05 11:10:48 +01:00 |
holger krekel
|
50c9e3f654
|
improve parametrize() docs
|
2011-11-19 23:45:05 +00:00 |
holger krekel
|
6b4e6eee09
|
improve release announcement, shift and fix examples a bit. Bump version to 2.2.0
|
2011-11-18 18:32:11 +00:00 |
holger krekel
|
a5e7b2760d
|
fix issue90 - perform teardown after its actual test function/item. This is implemented by modifying the runtestprotocol to remember "pending" teardowns and call them before the setup of the next item.
|
2011-11-18 16:01:29 +00:00 |
holger krekel
|
ec0565fac5
|
introduce metafunc.parametrize() and @pytest.mark.parametrize with examples. deprecate metafunc.addcall()
|
2011-11-17 11:09:21 +00:00 |
Benjamin Peterson
|
48b76c7544
|
rewrite test modules on import
|
2011-06-28 21:13:12 -05:00 |
holger krekel
|
ce1b456762
|
back out pytest_configure_funcargs hook for now
|
2011-06-01 15:08:54 +02:00 |
holger krekel
|
6c90059342
|
- properly include _pytest.assertion in distribution
- import assertion only at import-test module time
|
2011-05-31 15:21:08 +02:00 |
Benjamin Peterson
|
5e31624315
|
return to the old scheme of rewriting test modules from _importtestmodule
|
2011-05-28 18:47:16 -05:00 |
Benjamin Peterson
|
16b4f54545
|
remove module before/after import hooks
|
2011-05-26 20:00:29 -05:00 |
Benjamin Peterson
|
0a7237b72f
|
refactor common config/session protocol code for main() functions
|
2011-05-26 19:09:42 -05:00 |
Benjamin Peterson
|
241ff0b43a
|
add a hook called when a Module is successfully created
|
2011-05-26 18:56:45 -05:00 |
Benjamin Peterson
|
dd199d255c
|
move _setupstate into session
|
2011-05-26 17:08:56 -05:00 |
Benjamin Peterson
|
e02d22aa4f
|
expand try/except/finally which py2.4 does't like
|
2011-05-25 15:55:57 -05:00 |
Benjamin Peterson
|
bf039fea74
|
add hooks before and after a module is imported
|
2011-05-19 21:45:33 -05:00 |
Ronny Pfannschmidt
|
b6815538c5
|
introduce the pytest_configure_funcargs hook for better control on funcarg instanciation/configuration
|
2011-05-12 23:47:05 +02:00 |
holger krekel
|
ed6d2537bc
|
fix issue33 - no collection error for classes prefixed "test" deriving from object
|
2011-03-16 16:36:18 +01:00 |
holger krekel
|
18e784c9c9
|
re-introduce pytest._fillfuncargs - it's actually used by oejskit,
added a test documenting this.
|
2011-03-06 08:56:58 +01:00 |
holger krekel
|
9c952b3ce0
|
actually don't expose unused _fillfuncargs
|
2011-03-05 14:31:01 +01:00 |
holger krekel
|
07cee24122
|
avoid deprecation warnings for our internal accesses
|
2011-03-05 14:16:27 +01:00 |
holger krekel
|
318e8a404b
|
fix and improve error reporting for parametrizing funcargs (originally reported by antlong)
|
2011-03-05 12:11:35 +01:00 |
holger krekel
|
6f3b84da9f
|
fix issue 28 - setup_method now works with pytest_generate_tests
|
2011-03-02 18:03:43 +01:00 |
holger krekel
|
d2f9b41519
|
some doc fixes and improvements to parametrized test examples, thanks ccxCZ for review and suggestions.
|
2011-02-09 14:55:21 +01:00 |
holger krekel
|
b8f0d10f80
|
fix a pypy related regression - re-allow self.NAME style collection tree customization
|
2011-01-18 12:47:31 +01:00 |
holger krekel
|
aea4d1bd7a
|
fix regression with yield-based tests (hopefully)
|
2011-01-14 13:30:36 +01:00 |
holger krekel
|
c7531705fc
|
refine plugin registration, allow new "-p no:NAME" way to prevent/undo plugin registration
|
2010-12-06 16:54:42 +01:00 |
holger krekel
|
1df0eaa387
|
tons and tons of refinements and additions to docs
|
2010-11-25 12:11:10 +01:00 |
Benjamin Peterson
|
b28438171b
|
express filter as a listcomp
|
2010-11-24 19:18:42 -06:00 |
holger krekel
|
ab08cb2176
|
simplify pluginlist computation
|
2010-11-24 22:22:52 +01:00 |
holger krekel
|
4cb2c74159
|
introduce new discovery mechanism
XXX experiment with using it before introducing it or wait
for feature request
|
2010-11-24 22:01:04 +01:00 |
holger krekel
|
539f828cdd
|
also accept non-pytrace pytest.fail() call in setup/teardown methods
|
2010-11-24 16:43:55 +01:00 |
holger krekel
|
695bffc83d
|
refine unittest support to also work with twisted trial test cases better by
introducing a slightly hackish way to report a failure upstream
|
2010-11-23 15:42:23 +01:00 |
holger krekel
|
bc42cf8ffb
|
add a way to mark hooks as "tryfirst" or "trylast" to influence its position in a hook chain.
Use 'tryfirst' for capturing hooks so they can start capturing as early as possible,
including when conftests add output in runtest_setup hooks.
|
2010-11-21 23:17:59 +01:00 |
holger krekel
|
9a21a81740
|
add ability to use scope="class" in request.cached_setup() calls
|
2010-11-20 18:03:18 +01:00 |
holger krekel
|
582486d531
|
refine docs and docstrings, fix some small bits here and there while doing that.
|
2010-11-18 14:56:16 +01:00 |
holger krekel
|
fb102a2ddb
|
bump version and comment out ignore-testclass-if-unittest-module-feature
|
2010-11-17 12:21:24 +01:00 |
holger krekel
|
929291775e
|
flat is better than nested (cont'd):
- pytest.py is new module, making "python -m pytest" work always
- _pytest/*.py now contains core.py, hookspec and the plugins, no sub packages
|
2010-11-13 11:10:45 +01:00 |