Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:oertel
python-poetry
use-new-name-of-MockFixture.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File use-new-name-of-MockFixture.patch of Package python-poetry
From: Antonio Larrosa <alarrosa@suse.com> This is mainly like https://github.com/python-poetry/poetry/commit/9591e88492508d4dba260952d53266a0032c04c7 but without changing most package versions which is unrelated to this change. Index: poetry-1.1.13/tests/repositories/test_installed_repository.py =================================================================== --- poetry-1.1.13.orig/tests/repositories/test_installed_repository.py +++ poetry-1.1.13/tests/repositories/test_installed_repository.py @@ -2,7 +2,7 @@ from typing import Optional import pytest -from pytest_mock.plugin import MockFixture +from pytest_mock.plugin import MockerFixture from poetry.core.packages import Package from poetry.repositories.installed_repository import InstalledRepository @@ -53,7 +53,7 @@ def env(): # type: () -> MockEnv @pytest.fixture -def repository(mocker, env): # type: (MockFixture, MockEnv) -> InstalledRepository +def repository(mocker, env): # type: (MockerFixture, MockEnv) -> InstalledRepository mocker.patch( "poetry.utils._compat.metadata.Distribution.discover", return_value=INSTALLED_RESULTS, Index: poetry-1.1.13/pyproject.toml =================================================================== --- poetry-1.1.13.orig/pyproject.toml +++ poetry-1.1.13/pyproject.toml @@ -70,7 +70,7 @@ pytest = [ {version = "^6.2.5", python = ">=3.6"} ] pytest-cov = "^2.5" -pytest-mock = "^1.9" +pytest-mock = "^3.5" pre-commit = { version = "^2.6", python = "^3.6.1" } tox = "^3.0" pytest-sugar = "^0.9.2"
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor