summaryrefslogtreecommitdiff
path: root/dev-python/b2sdk/files
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2024-09-26 06:56:10 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2024-09-26 06:56:10 +0000
commit166293de47f11f9712801fc90100bf29ade431ff (patch)
treee1f8ee3dca823e05a4f3d41b8bb274f6a759167e /dev-python/b2sdk/files
parent7b128f48c4e4a72a709b0b6774f82083deb96a6e (diff)
downloadbaldeagleos-repo-166293de47f11f9712801fc90100bf29ade431ff.tar.gz
baldeagleos-repo-166293de47f11f9712801fc90100bf29ade431ff.tar.xz
baldeagleos-repo-166293de47f11f9712801fc90100bf29ade431ff.zip
Adding metadata
Diffstat (limited to 'dev-python/b2sdk/files')
-rw-r--r--dev-python/b2sdk/files/b2sdk-2.3.0-lazy-fixtures.patch56
1 files changed, 56 insertions, 0 deletions
diff --git a/dev-python/b2sdk/files/b2sdk-2.3.0-lazy-fixtures.patch b/dev-python/b2sdk/files/b2sdk-2.3.0-lazy-fixtures.patch
new file mode 100644
index 000000000000..0a942878433c
--- /dev/null
+++ b/dev-python/b2sdk/files/b2sdk-2.3.0-lazy-fixtures.patch
@@ -0,0 +1,56 @@
+Migrate from pytest-lazy-fixture to pytest-lazy-fixtures.
+https://github.com/Backblaze/b2-sdk-python/issues/484
+--- a/test/unit/account_info/fixtures.py
++++ b/test/unit/account_info/fixtures.py
+@@ -11,6 +11,7 @@ from __future__ import annotations
+
+ import pytest
+ from apiver_deps import InMemoryAccountInfo, SqliteAccountInfo
++from pytest_lazy_fixtures import lf
+
+
+ @pytest.fixture
+@@ -84,8 +85,8 @@ def sqlite_account_info(sqlite_account_info_factory):
+
+ @pytest.fixture(
+ params=[
+- pytest.lazy_fixture('in_memory_account_info_factory'),
+- pytest.lazy_fixture('sqlite_account_info_factory'),
++ lf('in_memory_account_info_factory'),
++ lf('sqlite_account_info_factory'),
+ ]
+ )
+ def account_info_factory(request):
+@@ -94,8 +95,8 @@ def account_info_factory(request):
+
+ @pytest.fixture(
+ params=[
+- pytest.lazy_fixture('in_memory_account_info'),
+- pytest.lazy_fixture('sqlite_account_info'),
++ lf('in_memory_account_info'),
++ lf('sqlite_account_info'),
+ ]
+ )
+ def account_info(request):
+--- a/test/unit/test_cache.py
++++ b/test/unit/test_cache.py
+@@ -13,7 +13,7 @@ from dataclasses import dataclass
+
+ import pytest
+ from apiver_deps import AuthInfoCache, DummyCache, InMemoryAccountInfo, InMemoryCache
+-from pytest_lazyfixture import lazy_fixture
++from pytest_lazy_fixtures import lf
+
+
+ @pytest.fixture
+@@ -32,8 +32,8 @@ def auth_info_cache():
+
+
+ @pytest.fixture(
+- scope="class", params=[lazy_fixture('in_memory_cache'),
+- lazy_fixture('auth_info_cache')]
++ params=[lf('in_memory_cache'),
++ lf('auth_info_cache')]
+ )
+ def cache(request):
+ return request.param