holger krekel
438d85b5ad
clarify that python_functions does not apply to unittest.TestCase
...
classes and their methods. Addresses issue284.
2013-11-22 13:44:56 +01:00
holger krekel
08f3a0791d
fix issue357 - special case "-k" expressions to allow for
...
filtering with simple strings that are not valid python expressions.
Examples: "-k 1.3" matches all tests parametrized with 1.3.
"-k None" filters all tests that have "None" in their name
and conversely "-k 'not None'".
Previously these examples would raise syntax errors.
Also add a note to the docs about what is allowed.
2013-11-21 15:25:16 +01:00
Bruno Oliveira
1faf95273c
Adding status images in plugins_index
...
--HG--
branch : plugins-index-status-images
2013-11-12 23:54:13 -02:00
holger krekel
f674c57d1a
add german pytest talk (pyconde2013)
2013-10-25 16:50:05 +02:00
holger krekel
47d2d20d81
fix typo, thank avanderneuth
2013-10-21 13:36:22 +02:00
holger krekel
2eebe6c677
Merged in nicoddemus/pytest/plugins-index-adjustments (pull request #77 )
...
Adjustments to the plugins index page
2013-10-20 07:53:36 +02:00
Floris Bruynooghe
8c326c5e66
Correct hyperlink and target
2013-10-15 12:45:55 +01:00
Bruno Oliveira
8e9034f074
adding column for download counts
...
--HG--
branch : plugins-index-adjustments
2013-10-14 19:14:05 -03:00
Bruno Oliveira
612fb96d02
using a single column for name and version
...
--HG--
branch : plugins-index-adjustments
2013-10-14 18:33:41 -03:00
Bruno Oliveira
49d067d72e
moved test_plugins_index.py
...
--HG--
branch : plugins-index-adjustments
2013-10-14 18:22:41 -03:00
Bruno Oliveira
8e1301b6d7
moved plugins_index to its own directory
...
--HG--
branch : plugins-index-adjustments
2013-10-14 18:14:35 -03:00
holger krekel
8ac5af2896
fix flakes issues and make --flakes run part of tox runs
2013-10-12 15:39:22 +02:00
Bruno Oliveira
6e619e0a70
fixed 'PyPI' spelling
...
--HG--
branch : plugins-index
2013-10-11 20:57:35 -03:00
Bruno Oliveira
5b2b71bfd4
included test for plugins_index and added command line options
...
--HG--
branch : plugins-index
2013-10-11 20:53:03 -03:00
Bruno Oliveira
d92322a574
added plugins_index documentation and generated plugins_index file
...
--HG--
branch : plugins-index
2013-10-11 19:47:40 -03:00
Bruno Oliveira
7e793b9419
adding first version of plugins_index script
...
--HG--
branch : plugins-index
2013-10-11 19:14:22 -03:00
holger krekel
4b395d56cc
bump version of docs
2013-10-04 13:59:44 +02:00
holger krekel
018860d626
finalize release announcement, changelog
2013-10-04 12:34:47 +02:00
holger krekel
0780f2573f
bump version to 2.4.2, regen docs
2013-10-03 19:09:18 +02:00
holger krekel
2248a31a44
more fixes regarding marking, in particular plugins should use add_marker/get_marker now.
2013-10-03 15:43:56 +02:00
holger krekel
2b8f4214c3
2.4.1 release preps
2013-10-02 09:16:51 +02:00
Andy Dirnberger
8ae79e09c0
Adjust syntax for parametrize documentation
...
Without the double colon, reStructuredText won't display treat the block that
follows as pre-formatted text. Also, with this change comes the need to change a
tab to spaces to align it with the adjacent lines.
--HG--
branch : dirn/adjust-syntax-for-parametrize-documentat-1380671670976
2013-10-01 23:54:34 +00:00
holger krekel
9b9355b8da
fix typos (thanks @faassen)
2013-10-01 14:30:53 +02:00
holger krekel
446bcf44fb
strike wrong yield_fixture paragraph
2013-10-01 14:25:59 +02:00
holger krekel
d226b2faf4
release announcement, bump version numbers, some test adapatations because of random win32 test failures.
2013-10-01 12:37:11 +02:00
holger krekel
a71fdd26b3
fix usage docs for "-k" (addresses issue357)
2013-09-30 21:39:32 +02:00
holger krekel
086d4e4ced
strike keyword argument in favour of new pytest.yield_fixture decorator
2013-09-30 13:42:39 +02:00
holger krekel
9ddfd62848
re-order CHANGELOG and group it into "features" and "bugs" and "known incompatibilities"
2013-09-27 12:58:26 +02:00
holger krekel
39503932a4
merge monkeypatch.replace into monkeypatch.setattr, also support monkeypatch.delattr.
2013-09-27 12:33:06 +02:00
holger krekel
684d7f8668
remove gittip mention for now.
2013-09-27 10:58:04 +02:00
holger krekel
1327eb7cef
rework docs to demonstrate and discuss current yield syntax in more depth.
2013-09-27 10:21:23 +02:00
holger krekel
3ab9b48782
introduce yieldctx=True in the @pytest.fixture decorator. Refactor tests and docs.
2013-09-26 12:57:21 +02:00
holger krekel
86f70f5201
fix issue352: fix reference to py.path.local description in tmpdir documentation
...
(generally to be found at http://pytest.org/latest/tmpdir.html )
2013-09-06 12:16:05 +02:00
holger krekel
94ee37cdb3
- fix issue181: --pdb now also works on collect errors. This was
...
implemented by a slight internal refactoring and the introduction
of a new hook ``pytest_exception_interact`` hook.
- fix issue341: introduce new experimental hook for IDEs/terminals to
intercept debugging: ``pytest_exception_interact(node, call, report)``.
2013-09-06 11:56:04 +02:00
Matthias C. M. Troffaes
b7d31952eb
Fix instructions for nose users.
...
--HG--
branch : fix-nose-docs
2013-08-23 11:59:57 +01:00
holger krekel
88aa8f5435
mention pytest_collection_modifyitems in plugin page
2013-08-08 23:32:14 +02:00
holger krekel
4b88d6d2d7
monkeypatch.replace() now only accepts a string. Improved error handling and
...
docs thanks to suggestions from flub, pelme, schmir, ronny.
2013-08-07 16:49:29 +02:00
holger krekel
407283ef81
a new monkeypatch.replace(target, value) call which derives the
...
monkeypatch location from target (can be class/module/function or
string which is taken as importable python path)
examples:
monkeypatch.replace(os.path.abspath, lambda x: "")
monkeypatch.replace("requests.get", ...)
2013-08-07 15:35:27 +02:00
holger krekel
7d86827b5e
ref #322 cleanup all teardown calling to only happen when setup succeeded.
...
don't use autouse fixtures for now because it would cause a proliferation
and overhead for the execution of every test. Rather introduce a
node.addfinalizer(fin) to attach a finalizer to the respective node
and call it from node.setup() functions if the setup phase succeeded
(i.e. there is no setup function or it finished successfully)
2013-08-02 09:52:40 +02:00
holger krekel
8f24e10571
add changelog entry for anthon's hynek-fication of options,
...
and change the docs and tests to use the new style.
2013-08-01 17:32:19 +02:00
Mathieu Agopian
905c648b99
fixes #335 : document ExceptionInfo returned by pytest.raises
2013-08-01 11:12:02 +02:00
holger krekel
1023390f53
fix issue334: don't recommend distribute but setuptools everywhere, also remove implicit distribute_setup support from setup.py.
2013-08-01 09:42:44 +02:00
Anthon van der Neut
87860600fb
Fixes for argcomplete
...
- separate out most argcomplete related stuff in new file _argcomplete.py
(could probably be in the py library)
- allow positional arguments to be interspaced with optional arguments
( + test in test_parseopt.py )
- removed double argument in tox.ini
- add documentation on installing argcomplete (>=0.5.7 as needed for
Python 3), might need improving/incorporation in index.
This does not work on 2.5 yet. I have patches for argcomplete
(with/print()/"".format) but I am not sure they will be accepted.
Agreed with hpk not to push for that.
Removing argcomplete and leaving completion code active now works by early
exit, so <TAB> no longer re-runs the programs without parameters
(which took long for py.test)
test calls bash with a script that redirects filedescriptor 8 (as used by
argcomplete), so the result can be tested.
--HG--
branch : argcomplete
2013-07-30 11:26:15 +02:00
Anthon van der Neut
4b56b075c1
updated tox to live on testrun.org (the old links are still
...
working on codespeak.net, but those docs are outdated)
--HG--
branch : tox_reference
2013-07-26 08:14:49 +02:00
holger krekel
c2138e9733
add python testing training
2013-07-16 11:30:21 +02:00
holger krekel
31c1c69901
fix link to kotti
2013-07-11 16:07:58 +02:00
holger krekel
be30eb22a6
fix docs wrt norecursedirs, thanks @mgax
2013-07-08 15:39:14 +02:00
Anatoly Bubenkov
214793f697
re #329 add test for skipif failure when you pass boolean without the reason. add emphasize to the docs.
...
--HG--
branch : 329-skipif-requires-expression-as-a-string
2013-07-06 18:54:24 +02:00
holger krekel
ae327ef435
move to development doc target
2013-07-06 15:38:40 +02:00
holger krekel
ea4a3adfd6
- add my ep2013 talk to talks page
...
- add "talks/blogs" to the navigation side bar
2013-07-03 11:47:18 +02:00
holger krekel
4af052b098
added some endorsements, not quite properly layouted
2013-06-20 14:05:16 +02:00
Alfredo Deza
0cfc4a49ea
adding ref targets on recwarn
2013-06-03 10:07:14 -04:00
holger krekel
da1996b5f5
fix issue316 - properly reference collection hooks in docs
2013-06-03 10:04:50 +02:00
holger krekel
c294a417bd
allow to specify parametrize inputs as a comma-separated string
...
add Wouter to changelog and to authors
2013-05-28 10:32:54 +02:00
holger krekel
bbc61c85ac
Merged in pfctdayelise/pytest (pull request #36 )
...
issue 308
2013-05-22 13:36:39 +02:00
holger krekel
f78408df77
add holger's gittip account, would also like to add ronny's
2013-05-21 16:05:32 +02:00
Brianna Laugher
d8bc40271a
issue #308
...
+ docs
2013-05-21 11:12:45 +10:00
holger krekel
e6e86fa462
fix issue307 - use yaml.safe_load instead of yaml.load, thanks Mark Eichin.
2013-05-16 09:59:48 +02:00
holger krekel
150ad0172f
document context fixtures, also improve plugin docs
2013-05-07 21:37:08 +02:00
holger krekel
9d8645b45d
enhance index page, fix announcement index
2013-05-07 21:34:59 +02:00
holger krekel
bbd265184d
support boolean condition expressions in skipif/xfail
...
change documentation to prefer it over string expressions
2013-05-07 18:40:26 +02:00
holger krekel
331bd84ef4
change version
2013-05-05 14:23:47 +02:00
holger krekel
8c7ae7f7a5
release 2.3.5 packaging
2013-04-30 12:26:30 +02:00
holger krekel
94aa76fec0
fix reference
2013-04-04 14:36:44 +02:00
Sasha Hart
265a4de06e
doc fix: 'x' should be '-x' so it is not interpreted as a filename
2013-04-03 14:51:06 -05:00
holger krekel
712898cfe1
- add release announce
2013-03-28 10:21:03 +01:00
Floris Bruynooghe
f31dc7a8b7
Attempt to improve detailed failure reporting
...
* If --verbose is used do not truncate.
* Add a special dict comparison instead of diffing
pprint output.
2013-03-28 01:39:01 +00:00
holger krekel
8f8466ee40
Merged in witsch/pytest/doctest-fixtures (pull request #25 )
...
fixture support in doctests
2013-03-21 12:33:43 +01:00
Andreas Zeidler
dfcb0e322c
rename `get_fixture` to `getfixture` to better match the current API style
...
--HG--
branch : doctest-fixtures
2013-03-21 12:04:14 +01:00
Andreas Zeidler
fa9bd8443f
update the documentation regarding the `get_fixture` helper
...
please note that the japanese translation was done using "google translate" and should probably be checked again... :)
--HG--
branch : doctest-fixtures
2013-03-20 17:54:38 +01:00
Takafumi Arakaki
5ba2a7f628
Add texinfo build target to doc/*/Makefile
2013-03-10 07:25:14 +01:00
Ronny Pfannschmidt
aeba66ac6a
fix typo in link
2013-02-14 14:15:13 +01:00
holger krekel
e007f2dc54
add note on leipzig course in june 2013
2013-02-02 20:15:01 +01:00
holger krekel
ee713ad036
add Brian Okken's blog post as a tutorial
2013-01-21 09:04:01 +01:00
holger krekel
4d4b551079
adapt locations of ML to new @python.org location
2012-12-27 16:48:17 +01:00
holger krekel
e13fedc256
fix pylib links
2012-12-27 16:48:14 +01:00
holger krekel
97f9bc2e46
fix/enhance example
2012-12-20 15:57:07 +01:00
holger krekel
d0bf65e6c8
adding an example on how to do interact with the list of collected tests once before any tests are run
2012-12-16 11:28:17 +01:00
holger krekel
8d25e52e1e
add sentry
2012-12-15 08:09:23 +01:00
Dusty Phillips
6fefab0e3a
pocoo no longer has a pastebin service, so this section title is incorrect.
2012-12-11 12:04:12 -07:00
Wieland Hoffmann
ffb5b8efa1
Fix a broken link to pytest-twisted
2012-11-22 19:59:15 +01:00
holger krekel
b5955c5979
fix version number, final fixes
2012-11-20 14:01:31 +01:00
holger krekel
765b053984
bump version, add announcement, regen docs
2012-11-20 13:42:00 +01:00
holger krekel
af89a9667f
add example for accessing test result information from fixture
2012-11-14 09:39:21 +01:00
ENDOH takanao
d31f4dcba8
Fix typos in a document
2012-11-10 16:29:43 +09:00
holger krekel
d9ce7f143e
switch to pushing docs to dev, amend markers example which needs the dev candidate
2012-11-09 12:40:48 +01:00
holger krekel
c790490387
add an example for postprocessing a test failure
2012-11-08 23:36:16 +01:00
holger krekel
664b01ca42
fix misleading typo
2012-11-08 19:05:46 +01:00
holger krekel
ff0c75aa34
- add a Package/dir level setup example
...
- make tox.ini's doc/regen use pytest release instead of dev version
2012-11-07 11:11:40 +01:00
holger krekel
370f5dd5cb
fix typo
2012-11-06 15:46:52 +01:00
holger krekel
79f45928a4
add release announce for 2.3.3
2012-11-06 15:41:51 +01:00
holger krekel
65d6ebe7d1
bump to 2.3.3, add release announce
2012-11-06 14:41:10 +01:00
holger krekel
33cd414420
fix issue127 improve pytest_addoption docs, add new config.getoption(name) method for consistency.
2012-11-06 14:09:12 +01:00
holger krekel
fb173a97a8
extended - fix issue214 - ignore attribute-access errors with objects in test modules that can blow up (for example flask's request object)
2012-10-31 17:00:55 +01:00
holger krekel
07cc48517d
fix wrong reference in basic fixture example, thanks for reporting! ( closes #212 )
2012-10-28 14:54:49 +01:00
holger krekel
573599beb3
i think "helps you write better programs" fits better than "makes"
2012-10-28 11:25:53 +01:00
holger krekel
6ebf39e9a6
fix wrong document version on pytest.org ( closes #210 )
2012-10-28 10:13:37 +01:00
holger krekel
427cf6f66d
add release announce
2012-10-25 14:13:43 +02:00
holger krekel
6ad16936bb
bump version to 2.3.2, regen docs and changelog
2012-10-25 13:48:31 +02:00
holger krekel
b8277bfed8
fix issue127 - improve pytest_addoption and related documentation
2012-10-25 11:07:07 +02:00