holger krekel
5a13f31bce
fix issue407: fix addoption docstring to point to argparse instead of
...
optparse. Thanks Daniel D. Wright.
2013-12-16 18:07:05 +01:00
holger krekel
41bddb48a1
remove unused var (fixes flakes tests)
2013-12-16 12:38:15 +01:00
Floris Bruynooghe
b820cf2e39
Fix docstring
...
This was copied from another paramterize call and I forgot to change
the parameters referred too.
2013-12-16 10:51:50 +00:00
Floris Bruynooghe
fd8638652d
Still print this, but use py2/py3 compat syntax
...
I realised being able to print is probably an essential part of this
test which I may have inadvertendly disabled, so correct that.
2013-12-16 10:51:04 +00:00
holger krekel
01ae5dbb2e
amend CHANGELOG with credits and issue mentioning
2013-12-16 08:04:46 +01:00
holger krekel
b4797d6295
fix issue403 : allow same-name parametrized functions within a collector
2013-12-16 07:47:59 +01:00
holger krekel
c9195a0f45
fix py32 failures and remove random print from commit accident
2013-12-16 07:19:49 +01:00
holger krekel
86c56c829a
fix issue405 -- xfail the plugin generation test as it is not supposed to run as part of the pytest core tests and only runs on specific environments.
2013-12-16 07:03:59 +01:00
holger krekel
ef023ebad3
merge
2013-12-16 07:01:58 +01:00
Floris Bruynooghe
0c737e3de0
Allow parameterised fixtures to give paramemter IDs
...
This is just like the markers etc already can do.
2013-12-15 22:15:15 +00:00
Floris Bruynooghe
1b7c70eab4
Do not use py2-only print, breaks py3 testruns
2013-12-15 22:12:38 +00:00
holger krekel
901f764825
merge
2013-12-14 14:00:47 +01:00
holger krekel
c1759fc384
fix py25 mention
2013-12-13 15:50:06 +01:00
Ronny Pfannschmidt
e843b028e6
fix issue404 by more strict junitxml escape
2013-12-13 10:28:23 +01:00
Bruno Oliveira
305cbecb34
Updated plugins_index to use pytest 2.5.0
...
- Also made test for plugins_index less brittle;
2013-12-12 19:20:13 -02:00
holger krekel
0a4d5a423e
some doc fixes
2013-12-12 13:06:25 +01:00
holger krekel
b9ccb9d31f
Added tag 2.5.0 for changeset a064ad64d167
2013-12-12 13:06:21 +01:00
holger krekel
a056b41070
fix typo
2013-12-12 13:01:57 +01:00
holger krekel
6d26c44895
remove py25 from automated testing
2013-12-12 08:16:16 +01:00
holger krekel
1644cd2da5
don't declare py25 as supported anymore.
2013-12-12 07:30:34 +01:00
holger krekel
98135a3d30
remove unusued import
2013-12-12 06:55:05 +01:00
holger krekel
307a41339c
fix expicit assert messages for Python2.6: it turns out python2.6
...
instantiates the AssertionError differently for tuples. Test
and fix to neutralize it.
2013-12-12 06:41:48 +01:00
Bruno Oliveira
72ebd74715
Updated plugins_index.txt with latest plugins
2013-12-11 17:28:08 -02:00
holger krekel
bfa53811d3
regen docs and bump version to 2.5.0
2013-12-11 12:20:19 +01:00
holger krekel
0fa77d58c4
preparing 2.5.0 release announcement
2013-12-11 12:12:01 +01:00
holger krekel
fa80b8ad17
add changelog: fix issue319 - correctly show unicode in assertion errors. Many
...
thanks to Floris Bruynooghe for the complete PR. Also means
we depend on py>=1.4.19 now.
2013-12-11 11:28:06 +01:00
holger krekel
9cdb6fc724
Merged in paylogic/pytest/override-fixture-via-parametrization (pull request #92 )
...
Paratrization overrides existing fixtures.
2013-12-10 14:59:10 +01:00
holger krekel
cd8e69e33c
close issue240 - rework "good practises" document and discuss
...
discuss the two common test directory layouts in more detail, including
an explicit note on how it interacts with PEP420-namespace packages.
2013-12-10 14:54:13 +01:00
Anatoly Bubenkov
7b87f7b6b5
Paratrization overrides existing fixtures.
...
--HG--
branch : override-fixture-via-parametrization
2013-12-10 14:27:29 +01:00
holger krekel
dd0da4643a
clarify that pytest.mark.parametrize() takes a list of argvalues and not just
...
arbitrary iterators. Addresses issue122.
2013-12-10 10:16:27 +01:00
holger krekel
7766526992
address issue122 -- explode "params" into a list in fixture function decorators
2013-12-09 10:48:15 +01:00
holger krekel
5c3d692008
some minor internal cleanup
2013-12-09 10:40:39 +01:00
holger krekel
bdf9147ad4
fix changelog
2013-12-09 10:38:40 +01:00
holger krekel
ad2ac256de
speed up reorder for large higher-than-function-scoped parametrizations
2013-12-09 10:05:44 +01:00
holger krekel
a4466342ae
make bench.py accept an optional script name and add a slow "manyparam" test
2013-12-09 08:14:58 +01:00
holger krekel
0d7af592c0
speed up a test
2013-12-09 08:14:39 +01:00
holger krekel
66ffc5e0f8
backout allowing @pytest.fixture in front of pytest_funcarg__NAME functions.
...
It was introduced because of pylint warnings and it's probably better to
go for a pylint-pytest plugin that avoids also other warnings/issues.
2013-12-09 07:07:47 +01:00
holger krekel
320137a4aa
Merged in msabramo/pytest/color_option (pull request #91 )
...
Remove u'' literal in test_color_{yes,no} for Python 3.2 compat
2013-12-08 20:56:21 +01:00
Marc Abramowitz
0278dc9b6f
Remove u'' literal in test_color_{yes,no} for Python 3.2 compat
...
--HG--
branch : color_option
2013-12-08 11:39:55 -08:00
holger krekel
7d9297e929
add changelog entry: PR90: add --color=yes|no|auto option to force terminal coloring
...
mode ("auto" is default). Thanks Marc Abramowitz.
2013-12-08 20:25:36 +01:00
holger krekel
9e03ea8215
Merged in msabramo/pytest/color_option (pull request #90 )
...
Add option: --color=(yes/no/auto)
2013-12-08 20:19:37 +01:00
Marc Abramowitz
60f5b15f20
Remove superfluous `monkeypatch` arg to test_color_yes
...
--HG--
branch : color_option
2013-12-07 12:04:23 -08:00
holger krekel
e67047d629
remove unused cache argument for re-ordering items.
2013-12-07 21:00:33 +01:00
holger krekel
10edfa65dc
fix issue396 -- properly sort tests using class-scoped parametrization
...
also refix issue323 in a better way to avoid recursion for the fixture-grouping
algorithm alltogether.
2013-12-07 20:55:17 +01:00
holger krekel
daec4c70b8
refactor sorting wrt class-scopes. This fixes issue396 and also simplifies
...
the internal sorting algorithm a bit.
2013-12-07 19:31:27 +01:00
holger krekel
dbfbc2b222
add a skip benchmark file (from issue400).
2013-12-07 19:11:37 +01:00
holger krekel
426907eafb
radically simplify eq/neq with nodes by just using Pythons builtin "is" relationship.
...
The need for comparing two separately instantiated nodes seems to be historic
(related to an already-gone mode of pytest-xdist which would re-collect nodes)
and not actually needed anymore.
2013-12-07 16:39:53 +01:00
holger krekel
4f0879ff9b
refactor internal finalization mechanics such that all fixture arguments
...
in a test invocation will have a corresponding FixtureDef instance.
also fixes issue246 (again).
simplify parametrized fixture teardown by making it work lazy:
during the setup of a parametrized fixture instance any previously
setup instance which was setup with a different param is torn down
before setting up the new one.
2013-12-07 16:37:46 +01:00
Marc Abramowitz
bec6ee5c29
Assert 'test session starts' in output for test_color_{yes,no}
...
--HG--
branch : color_option
2013-12-06 11:58:04 -08:00
Marc Abramowitz
23fa4cec61
Add option: --color=(yes/no/auto)
...
--HG--
branch : color_option
2013-12-06 11:49:48 -08:00