test_ok2/testing
Anton Lodder acb3e8e8a7 Test rewriting assertion when __name__ fails
Pytest rewrites assertions so that the items on each
side of a comoparison will have easier-to-read names
in case of an assertion error.

Before doing this, it checks to make sure the object
doesn't have a __name__ attribute; however, it uses
`hasattr` so if the objects __getattr__ is broken then
the test failure message will be the stack trace
for this failure instead of a rewritten assertion.
2019-01-10 20:45:15 -05:00
..
code Deprecate `raises(..., 'code(as_a_string)')` / `warns(..., 'code(as_a_string)') 2018-11-29 09:34:51 -08:00
example_scripts Deprecate `raises(..., 'code(as_a_string)')` / `warns(..., 'code(as_a_string)') 2018-11-29 09:34:51 -08:00
examples port some acceptance tests over to copy_example 2018-06-26 22:59:40 +02:00
freeze run black 2018-05-23 16:48:46 +02:00
logging minor: typos 2018-11-09 02:03:44 +01:00
python Remove support for applying marks to values in parametrize 2018-12-20 16:16:13 -02:00
acceptance_test.py Merge branch 'features' into remove-legacy-warn 2018-12-17 10:37:31 -02:00
deprecated_test.py Raise an error if pytest_plugins is defined in a non-top-level conftest.py file 2018-12-19 18:09:47 -02:00
test_argcomplete.py tests: fix equal_with_bash for .coverage files 2018-11-10 03:24:02 +01:00
test_assertion.py Show full repr with assert a==b and -vv 2019-01-08 01:25:05 +00:00
test_assertrewrite.py Test rewriting assertion when __name__ fails 2019-01-10 20:45:15 -05:00
test_cacheprovider.py #4278 Added a CACHEDIR.TAG file to the cache directory 2018-12-04 13:49:08 +01:00
test_capture.py Merge master into features 2018-12-10 05:42:07 +01:00
test_collection.py remove yield tests and compat properties 2018-11-30 10:40:13 +01:00
test_compat.py python: collect: ignore exceptions with isinstance 2018-11-01 22:14:13 +01:00
test_config.py Merge branch 'features' into remove-legacy-warn 2018-12-17 10:37:31 -02:00
test_conftest.py _getconftestmodules: use functools.lru_cache 2018-10-31 23:17:05 +01:00
test_doctest.py Apply reorder-python-imports to all files 2018-10-25 00:01:29 -07:00
test_entry_points.py Apply reorder-python-imports to all files 2018-10-25 00:01:29 -07:00
test_helpconfig.py Apply reorder-python-imports to all files 2018-10-25 00:01:29 -07:00
test_junitxml.py Use mocking to make test_junit_duration_report deterministic 2018-12-19 17:13:12 -02:00
test_mark.py remove most of markertransfer 2018-12-21 14:02:38 +01:00
test_modimport.py tests: test_fileimport: improve reporting on failure 2018-11-09 01:17:36 +01:00
test_monkeypatch.py Deprecate `raises(..., 'code(as_a_string)')` / `warns(..., 'code(as_a_string)') 2018-11-29 09:34:51 -08:00
test_nodes.py Merge remote-tracking branch 'upstream/master' into merge-master-into-features 2018-11-13 09:01:37 -02:00
test_nose.py remove yield tests and compat properties 2018-11-30 10:40:13 +01:00
test_parseopt.py argparsing: Parser: allow to forward prog to argparse 2018-12-11 06:22:35 +01:00
test_pastebin.py Apply reorder-python-imports to all files 2018-10-25 00:01:29 -07:00
test_pathlib.py Fix access denied error when deleting a stale temporary directory 2018-10-30 15:35:53 -03:00
test_pdb.py Merge pull request #4419 from blueyed/set_trace-kwargs 2018-12-11 04:28:24 +01:00
test_pluginmanager.py Remove config.warn, Node.warn; pytest_logwarning issues a warning when implemented 2018-12-14 12:50:18 -02:00
test_pytester.py Remove config.warn, Node.warn; pytest_logwarning issues a warning when implemented 2018-12-14 12:50:18 -02:00
test_recwarn.py Deprecate `raises(..., 'code(as_a_string)')` / `warns(..., 'code(as_a_string)') 2018-11-29 09:34:51 -08:00
test_resultlog.py fix #4386 - restructure construction and partial state of ExceptionInfo 2018-11-22 21:20:32 +01:00
test_runner.py Add test case for `importorskip` custom reason 2019-01-04 19:06:23 +00:00
test_runner_xunit.py remove yield tests and compat properties 2018-11-30 10:40:13 +01:00
test_session.py remove yield tests and compat properties 2018-11-30 10:40:13 +01:00
test_skipping.py Change -ra to show errors and failures last, instead of first 2018-12-11 20:36:57 -02:00
test_stepwise.py Use a custom cache directory for test_stepwise tests 2018-11-12 16:57:39 -02:00
test_terminal.py Update --collect-only to display test descriptions when ran in verbose mode. 2018-12-29 22:46:46 -08:00
test_tmpdir.py use Path.resolve in test to sort out osx temporary folder being a symlink 2018-11-22 16:10:12 +01:00
test_unittest.py Fix formatting of print() calls 2018-11-22 00:15:14 -08:00
test_warnings.py Change test_warningschecker_twice to a unittest 2019-01-09 18:58:51 -02:00