Age | Commit message (Collapse) | Author |
|
It is not very clear why this code exists -- we are not running any
unittest or nose code during collection, and really these frameworks
don't have the concept of collection at all, and just raising these
exceptions at e.g. the module level would cause an error. So unless I'm
missing something, I don't think anyone is using this.
Deprecate it so we can eventually clear up this code and keep unittest
more tightly restricted to its plugin.
|
|
* unittest: cleanup unexpected success handling
* update comment
|
|
pytest-dev/dependabot/pip/testing/plugins_integration/django-3.1.5
build(deps): bump django from 3.1.4 to 3.1.5 in /testing/plugins_integration
|
|
Bumps [django](https://github.com/django/django) from 3.1.4 to 3.1.5.
- [Release notes](https://github.com/django/django/releases)
- [Commits](https://github.com/django/django/compare/3.1.4...3.1.5)
Signed-off-by: dependabot[bot] <support@github.com>
|
|
Bumps [pytest-mock](https://github.com/pytest-dev/pytest-mock) from 3.4.0 to 3.5.1.
- [Release notes](https://github.com/pytest-dev/pytest-mock/releases)
- [Changelog](https://github.com/pytest-dev/pytest-mock/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest-mock/compare/v3.4.0...v3.5.1)
Signed-off-by: dependabot[bot] <support@github.com>
|
|
Misc small code improvements
|
|
|
|
Keep knowledge of how the marker is stored encapsulated in one place.
|
|
pytest-dev#8204 migrate tests on testing/code/test_source to tmp_path
|
|
|
|
migrating some tests from tmpdir to tmp_path fixture
|
|
Not smart enough to understand the previous code.
|
|
* Fix failing staticmethod tests if they are inherited
* add comments, set default=None
|
|
christophebedard/add-missing-space-version-option-help-message
Add missing space in '--version' help message
|
|
* [pre-commit.ci] pre-commit autoupdate
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* manual fixes after configuration update
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Anthony Sottile <asottile@umich.edu>
|
|
|
|
The type cannot be constructed directly, but is exported for use in type
annotations, since it is reachable through existing public API.
|
|
More py.path -> pathlib conversions
|
|
|
|
The tmpdir fixture (and its factory variant) is soft-deprecated in favor
of the tmp_path fixture.
|
|
inifile is soft-deprecated in favor of inipath.
|
|
|
|
|
|
mark: expose Mark, MarkDecorator, MarkGenerator under pytest for typing purposes
|
|
Bumps [pytest-mock](https://github.com/pytest-dev/pytest-mock) from 3.3.1 to 3.4.0.
- [Release notes](https://github.com/pytest-dev/pytest-mock/releases)
- [Changelog](https://github.com/pytest-dev/pytest-mock/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest-mock/compare/v3.3.1...v3.4.0)
Signed-off-by: dependabot[bot] <support@github.com>
|
|
The type cannot be constructed directly, but is exported for use in type
annotations, since it is reachable through existing public API.
|
|
The type of _initialpaths is `FrozenSet[Path]`.
|
|
|
|
Really it ought to only take the List[str], but for backward
compatibility, at least get rid of the explicit py.path.local check.
|
|
|
|
|
|
|
|
|
|
hookspec: add pathlib.Path alternatives to py.path.local parameters in hooks
|
|
|
|
As part of the ongoing migration for py.path to pathlib, make sure all
hooks which take a py.path.local also take an equivalent pathlib.Path.
|
|
|
|
pytest-dev/dependabot/pip/testing/plugins_integration/pytest-html-3.1.1
build(deps): bump pytest-html from 3.1.0 to 3.1.1 in /testing/plugins_integration
|
|
Bumps [pytest-html](https://github.com/pytest-dev/pytest-html) from 3.1.0 to 3.1.1.
- [Release notes](https://github.com/pytest-dev/pytest-html/releases)
- [Changelog](https://github.com/pytest-dev/pytest-html/blob/master/CHANGES.rst)
- [Commits](https://github.com/pytest-dev/pytest-html/compare/v3.1.0...v3.1.1)
Signed-off-by: dependabot[bot] <support@github.com>
|
|
Bumps [pytest-bdd](https://github.com/pytest-dev/pytest-bdd) from 4.0.1 to 4.0.2.
- [Release notes](https://github.com/pytest-dev/pytest-bdd/releases)
- [Changelog](https://github.com/pytest-dev/pytest-bdd/blob/master/CHANGES.rst)
- [Commits](https://github.com/pytest-dev/pytest-bdd/compare/4.0.1...4.0.2)
Signed-off-by: dependabot[bot] <support@github.com>
|
|
|
|
Compare also paths on Windows when considering ImportPathMismatchError
|
|
|
|
Some py.path.local -> pathlib.Path
|
|
Avoid showing a line like
x.py::test_4 XPASS () [100%]
which looks funny.
|
|
Add a new hook , `pytest_markeval_namespace` which should return a dictionary.
This dictionary will be used to augment the "global" variables available to evaluate skipif/xfail/xpass markers.
Pseudo example
``conftest.py``:
.. code-block:: python
def pytest_markeval_namespace():
return {"color": "red"}
``test_func.py``:
.. code-block:: python
@pytest.mark.skipif("color == 'blue'", reason="Color is not red")
def test_func():
assert False
|
|
- Some conftest related functions
- _confcutdir
- Allow arbitrary os.PathLike[str] in gethookproxy.
|
|
On Windows, os.path.samefile returns false for paths mounted in UNC paths which
point to the same location.
I couldn't reproduce the actual case reported, but looking at the code it seems
this commit should fix the issue.
Fix #7678
Fix #8076
|
|
|
|
* Migrate to pytester: test_capture.py, test_config.py, approx.py
* migrate test_terminal.py
* revert test_config.py
* more typing in test_terminal.py
* try-out 'tr' fixture update
* revert 'tr' fixture, update test_config.py
|