diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-02-24 17:40:43 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-02-24 17:40:43 +0000 |
commit | 24ee8c58752f0dc4376961a28f7364e6d7c7a7aa (patch) | |
tree | 0a71618e774dce4efc0ddc7808557a03925de8d9 /dev-python/betamax/files | |
parent | a625efe29cec7f7c437cf33a956ea99eed1e4bd9 (diff) |
gentoo auto-resync : 24:02:2024 - 17:40:43
Diffstat (limited to 'dev-python/betamax/files')
-rw-r--r-- | dev-python/betamax/files/betamax-0.8.1-pytest.patch | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/dev-python/betamax/files/betamax-0.8.1-pytest.patch b/dev-python/betamax/files/betamax-0.8.1-pytest.patch deleted file mode 100644 index e3bfe39c81ca..000000000000 --- a/dev-python/betamax/files/betamax-0.8.1-pytest.patch +++ /dev/null @@ -1,38 +0,0 @@ -From 165cc321f2b9839418269e9493b03eb2e43f7ddf Mon Sep 17 00:00:00 2001 -From: Jiri Kuncar <jiri.kuncar@gmail.com> -Date: Mon, 9 Sep 2019 12:23:18 +0200 -Subject: [PATCH] tests: fix direct calls to PyTest fixtures - -https://docs.pytest.org/en/latest/deprecations.html#calling-fixtures-directly ---- - tests/unit/test_fixtures.py | 8 ++++---- - 1 file changed, 4 insertions(+), 4 deletions(-) - -diff --git a/tests/unit/test_fixtures.py b/tests/unit/test_fixtures.py -index 387d9ce..41f33eb 100644 ---- a/tests/unit/test_fixtures.py -+++ b/tests/unit/test_fixtures.py -@@ -27,9 +27,9 @@ def test_adds_stop_as_a_finalizer(self): - # Mock a pytest request object - request = mock.MagicMock() - request.cls = request.module = None -- request.function.__name__ = 'test' -+ request.node.name = request.function.__name__ = 'test' - -- pytest_fixture.betamax_recorder(request) -+ pytest_fixture._betamax_recorder(request) - assert request.addfinalizer.called is True - request.addfinalizer.assert_called_once_with(self.mocked_betamax.stop) - -@@ -37,9 +37,9 @@ def test_auto_starts_the_recorder(self): - # Mock a pytest request object - request = mock.MagicMock() - request.cls = request.module = None -- request.function.__name__ = 'test' -+ request.node.name = request.function.__name__ = 'test' - -- pytest_fixture.betamax_recorder(request) -+ pytest_fixture._betamax_recorder(request) - self.mocked_betamax.start.assert_called_once_with() - - |