nucliadb-utils 6.7.1.post4834__py3-none-any.whl → 6.7.1.post4836__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- nucliadb_utils/tests/fixtures.py +12 -2
- nucliadb_utils/tests/local.py +0 -1
- {nucliadb_utils-6.7.1.post4834.dist-info → nucliadb_utils-6.7.1.post4836.dist-info}/METADATA +3 -3
- {nucliadb_utils-6.7.1.post4834.dist-info → nucliadb_utils-6.7.1.post4836.dist-info}/RECORD +6 -6
- {nucliadb_utils-6.7.1.post4834.dist-info → nucliadb_utils-6.7.1.post4836.dist-info}/WHEEL +0 -0
- {nucliadb_utils-6.7.1.post4834.dist-info → nucliadb_utils-6.7.1.post4836.dist-info}/top_level.txt +0 -0
nucliadb_utils/tests/fixtures.py
CHANGED
@@ -18,6 +18,7 @@
|
|
18
18
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
19
19
|
#
|
20
20
|
import os
|
21
|
+
import sys
|
21
22
|
from typing import Any, Iterator, Type
|
22
23
|
from unittest.mock import Mock
|
23
24
|
|
@@ -51,8 +52,17 @@ def hosted_nucliadb():
|
|
51
52
|
nuclia_settings.onprem = original
|
52
53
|
|
53
54
|
|
54
|
-
def get_testing_storage_backend(
|
55
|
-
|
55
|
+
def get_testing_storage_backend():
|
56
|
+
"""
|
57
|
+
Default to gcs for linux users and s3 for macOS users. This is because some
|
58
|
+
tests fail on macOS with the gcs backend with a weird nidx error (to be looked into).
|
59
|
+
"""
|
60
|
+
if sys.platform.startswith("darwin"):
|
61
|
+
default = "s3"
|
62
|
+
else:
|
63
|
+
default = "gcs"
|
64
|
+
selected = os.environ.get("TESTING_STORAGE_BACKEND", default)
|
65
|
+
return selected
|
56
66
|
|
57
67
|
|
58
68
|
def lazy_storage_fixture():
|
nucliadb_utils/tests/local.py
CHANGED
@@ -45,7 +45,6 @@ def local_storage_settings(tmp_path: Path) -> Iterator[dict[str, Any]]:
|
|
45
45
|
@pytest.fixture(scope="function")
|
46
46
|
async def local_storage(local_storage_settings: dict[str, Any]):
|
47
47
|
assert storage_settings.local_files is not None
|
48
|
-
|
49
48
|
storage = LocalStorage(
|
50
49
|
local_testing_files=storage_settings.local_files,
|
51
50
|
indexing_bucket=storage_settings.local_indexing_bucket,
|
{nucliadb_utils-6.7.1.post4834.dist-info → nucliadb_utils-6.7.1.post4836.dist-info}/METADATA
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: nucliadb_utils
|
3
|
-
Version: 6.7.1.
|
3
|
+
Version: 6.7.1.post4836
|
4
4
|
Summary: NucliaDB util library
|
5
5
|
Author-email: Nuclia <nucliadb@nuclia.com>
|
6
6
|
License-Expression: AGPL-3.0-or-later
|
@@ -27,8 +27,8 @@ Requires-Dist: nats-py[nkeys]>=2.6.0
|
|
27
27
|
Requires-Dist: PyNaCl
|
28
28
|
Requires-Dist: pyjwt>=2.4.0
|
29
29
|
Requires-Dist: mrflagly>=0.2.9
|
30
|
-
Requires-Dist: nucliadb-protos>=6.7.1.
|
31
|
-
Requires-Dist: nucliadb-telemetry>=6.7.1.
|
30
|
+
Requires-Dist: nucliadb-protos>=6.7.1.post4836
|
31
|
+
Requires-Dist: nucliadb-telemetry>=6.7.1.post4836
|
32
32
|
Provides-Extra: cache
|
33
33
|
Requires-Dist: redis>=4.3.4; extra == "cache"
|
34
34
|
Requires-Dist: orjson>=3.6.7; extra == "cache"
|
@@ -52,12 +52,12 @@ nucliadb_utils/storages/utils.py,sha256=F4Iboa_0_bhDQr-JOKD9sGPld_-hKwJW5ptyZdn9
|
|
52
52
|
nucliadb_utils/tests/__init__.py,sha256=Oo9CAE7B0eW5VHn8sHd6o30SQzOWUhktLPRXdlDOleA,1456
|
53
53
|
nucliadb_utils/tests/asyncbenchmark.py,sha256=vrX_x9ifCXi18PfNShc23w9x_VUiB_Ph-2nuolh9z3Q,10707
|
54
54
|
nucliadb_utils/tests/azure.py,sha256=NvMrPG6gfbpDE0m_aZgaa7eorbmA1r9rhAsAANhMlJk,4494
|
55
|
-
nucliadb_utils/tests/fixtures.py,sha256=
|
55
|
+
nucliadb_utils/tests/fixtures.py,sha256=4lzz-khYvbGzdbT18IG6KKg40f7CVex2q3ho88I-jL8,3799
|
56
56
|
nucliadb_utils/tests/gcs.py,sha256=MBMzn_UHU5SU6iILuCsB5zU4umhNcaCw_MKrxZhwvOc,4705
|
57
|
-
nucliadb_utils/tests/local.py,sha256=
|
57
|
+
nucliadb_utils/tests/local.py,sha256=z9E11_ol1mu7N8Y6PkjKl-WMPPMl7JqQbDj3uhVa1A0,1933
|
58
58
|
nucliadb_utils/tests/nats.py,sha256=RWHjwqq5esuO7OFbP24yYX1cXnpPLcWJwDUdmwCpH28,1897
|
59
59
|
nucliadb_utils/tests/s3.py,sha256=kz9ULxrAYLVslZ59I8dtweZ9DJz5R8Ioy2XYrveZzHw,3829
|
60
|
-
nucliadb_utils-6.7.1.
|
61
|
-
nucliadb_utils-6.7.1.
|
62
|
-
nucliadb_utils-6.7.1.
|
63
|
-
nucliadb_utils-6.7.1.
|
60
|
+
nucliadb_utils-6.7.1.post4836.dist-info/METADATA,sha256=js99BKmRiiA-_GNIJO-3UgOoyfiRjiAaAL1HVpV_0VE,2180
|
61
|
+
nucliadb_utils-6.7.1.post4836.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
62
|
+
nucliadb_utils-6.7.1.post4836.dist-info/top_level.txt,sha256=fE3vJtALTfgh7bcAWcNhcfXkNPp_eVVpbKK-2IYua3E,15
|
63
|
+
nucliadb_utils-6.7.1.post4836.dist-info/RECORD,,
|
File without changes
|
{nucliadb_utils-6.7.1.post4834.dist-info → nucliadb_utils-6.7.1.post4836.dist-info}/top_level.txt
RENAMED
File without changes
|