Ronny Pfannschmidt
66609665f2
Merge pull request #4076 from nicoddemus/unittest-param-fixture-msg
...
Improve error message when TestCase functions use a parametrized fixture
2018-10-06 07:43:57 +02:00
Bruno Oliveira
a1208f5631
Merge pull request #4075 from nicoddemus/dynamic-fixturenames
...
Fix request.fixturenames to return fixtures created dynamically
2018-10-04 09:21:23 -03:00
Anthony Sottile
b098292352
Merge pull request #4069 from asottile/deindent_4066
...
Fix source reindenting by using `textwrap.dedent` directly.
2018-10-03 16:11:51 -07:00
Bruno Oliveira
212937eb3e
Improve error message when TestCase functions use a parametrized fixture
...
Fix #2535
2018-10-03 19:43:46 -03:00
Bruno Oliveira
70c7273640
Fix request.fixturenames to return fixtures created dynamically
...
Fix #3057
2018-10-03 18:50:14 -03:00
Anthony Sottile
e5ab62b1b6
Remove (unused) offset= parameter from deindent()
2018-10-03 13:33:10 -07:00
Anthony Sottile
b8b9e8d41c
Remove duplicate test (tested above)
2018-10-03 10:01:06 -07:00
Bruno Oliveira
e712adc226
Merge pull request #4072 from pecey/tmp/issue-4064
...
Fixes #4064 by correcting the documentation for unit-tests
2018-10-03 12:26:35 -03:00
Palash Chatterjee
f9ac60807c
Fixes #4064 by correcting the documentation for unit-tests
2018-10-03 18:11:09 +05:30
Bruno Oliveira
3f03625a5d
Merge pull request #4070 from jeffreyrack/4058-update-fixture-docs
...
Update documentation to indicate a fixture can be invoked more than once in it's scope.
2018-10-03 08:39:41 -03:00
Jeffrey Rackauckas
c5dec6056f
Fix wording in fixtures doc.
2018-10-02 21:17:53 -07:00
Jeffrey Rackauckas
642847c079
Update documentation on fixture being invoked more than once in a scope.
2018-10-02 20:53:15 -07:00
Anthony Sottile
f102ccc8f0
Fix source reindenting by using `textwrap.dedent` directly.
2018-10-02 16:13:35 -07:00
Bruno Oliveira
20f93ae8fa
Merge pull request #4067 from beneyal/master
...
Add pytest.freeze_includes() to reference
2018-10-02 20:02:37 -03:00
Anthony Sottile
df435fa8bd
Merge pull request #4065 from asottile/release-3.8.2
...
Preparing release version 3.8.2
2018-10-02 13:53:52 -07:00
Ben Eyal
a5269b26e0
Add anchor for "Freezing pytest"
2018-10-02 17:54:59 +03:00
Anthony Sottile
d3673c7429
Preparing release version 3.8.2
2018-10-02 07:46:02 -07:00
Ben Eyal
5010e02eda
Add pytest.freeze_includes to reference
2018-10-02 17:39:08 +03:00
Bruno Oliveira
25fe3706a4
Merge pull request #4056 from nicoddemus/unicode-vars
...
Ensure Monkeypatch setenv and delenv use bytes keys in Python 2
2018-10-02 07:56:32 -03:00
Bruno Oliveira
1a323fbd3c
Show a warning when non-str is given to Monkeypatch.setenv
2018-10-01 20:07:07 -03:00
Bruno Oliveira
9d971d33be
Hide internal pytest.warns traceback
2018-10-01 18:45:08 -03:00
Bruno Oliveira
bc009a8582
Fix test to comply with pypy 6.0
2018-10-01 18:37:27 -03:00
Bruno Oliveira
5e7d427df1
Merge pull request #4060 from nicoddemus/4051-changelog
...
Improve changelog for #4051
2018-10-01 18:12:52 -03:00
Bruno Oliveira
dd59ed3b18
Merge pull request #4059 from labcodes/documenting-scopes
...
Add possible values for fixture scope to docs
2018-10-01 17:25:42 -03:00
Bruno Oliveira
20d0f0e56b
Improve changelog for #4051
2018-10-01 17:12:05 -03:00
Bruno Oliveira
d24a7e6c5a
Issue warning if Monkeypatch.setenv/delenv receive non-strings in Python 2
...
Fixes the bug described in:
https://github.com/tox-dev/tox/pull/1025#discussion_r221273830
Which is more evident when using `unicode_literals`.
2018-10-01 17:05:30 -03:00
Jose Carlos Menezes
4dc73bda45
Update changelog
2018-10-01 14:41:30 -03:00
Jose Carlos Menezes
732cc2687d
Add possible values for fixture scope to docs
2018-10-01 14:31:28 -03:00
Ronny Pfannschmidt
5d2d64c190
Merge pull request #4057 from jeffreyrack/4051-improve-error-messaging
...
Improve error messaging when invalid syntax is passed to the -m option
2018-10-01 07:16:59 +02:00
Jeffrey Rackauckas
7a6d16c1eb
Adding .rst to end of changelog fragment filename.
2018-09-30 18:45:49 -07:00
Jeffrey Rackauckas
c2179c3127
Improve error messaging when invalid syntax is passed to the -m option
2018-09-30 18:34:56 -07:00
Bruno Oliveira
d8d7f73e1c
Merge pull request #4045 from nicoddemus/root-conftest-warning-workaround-4039
...
Do not issue non-top-level conftest warning when --pyargs is used
2018-09-27 09:26:11 -03:00
Ronny Pfannschmidt
3c23b5b010
Merge pull request #4037 from nicoddemus/deprecate-item-warnings-captured-hook
...
Document that item parameter of pytest_warning_captured hook is deprecated
2018-09-27 13:20:26 +02:00
Bruno Oliveira
783019a8e6
Rename 4040.trivial.rst to 4040.bugfix.rst
2018-09-27 08:08:03 -03:00
Bruno Oliveira
d2fc7ca6e0
Merge pull request #4041 from Zac-HD/user-properties-type
...
Ensure user_properties is a list
2018-09-27 08:04:30 -03:00
Bruno Oliveira
2d06927a06
Merge pull request #4040 from ods/summary_passes_less_noisy
...
Exclude empty reports for passed tests
2018-09-27 08:01:58 -03:00
Denis Otkidach
44d29d887e
Changelog entry on excluding empty reports for passed tests
2018-09-26 19:02:35 +03:00
Bruno Oliveira
32c5a113e2
Do not issue non-top-level conftest warning when --pyargs is used
...
Fix #4039
2018-09-26 12:02:08 -03:00
Bruno Oliveira
ba5630e0f8
Simplify test_pytest_plugins_in_non_top_level_conftest_deprecated
2018-09-26 10:49:14 -03:00
Denis Otkidach
808df48ee8
Test for excluding empty reports for passed tests
2018-09-26 16:44:00 +03:00
Zac-HD
a089a9577e
Succinct definition of user_properties
2018-09-26 22:40:11 +10:00
Zac-HD
6be2136f20
Ensure user_properties is a list
2018-09-26 22:04:50 +10:00
Denis Otkidach
f9ab81a493
Exclude empty reports for passed tests
2018-09-26 11:55:39 +03:00
Bruno Oliveira
1636522563
Document that item parameter of pytest_warning_captured hook is deprecated
...
Our policy is to not deprecate features during bugfix releases, but in this
case I believe it makes sense as we are only documenting it as deprecated,
without issuing warnings which might potentially break test suites.
This will get the word out that hook implementers should not use this parameter
at all.
Fix #4036
2018-09-25 17:38:22 -03:00
Bruno Oliveira
b1fbb2ab92
Merge pull request #4032 from hjwp/patch-1
...
add documentation of register_assert_rewrite
2018-09-25 08:43:29 -03:00
Daniel Hahler
e85edf5212
Merge pull request #4029 from nicoddemus/warnings-example-deprecation-docs
...
Add an example on how to update config.warn calls
2018-09-25 13:25:21 +02:00
Bruno Oliveira
b03bad5dbb
Fix linting
2018-09-25 08:12:55 -03:00
Harry Percival
19ec300b2a
fix rst syntax again
2018-09-25 06:58:47 +01:00
Harry Percival
11442f2ad7
fix rst syntax thing
2018-09-25 06:57:33 +01:00
Harry Percival
97748b6605
mention conftest.py as a good place to do it.
2018-09-25 06:55:28 +01:00