nucliadb-utils 4.0.3.post600__py3-none-any.whl → 4.0.3.post602__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 +20 -0
- {nucliadb_utils-4.0.3.post600.dist-info → nucliadb_utils-4.0.3.post602.dist-info}/METADATA +3 -3
- {nucliadb_utils-4.0.3.post600.dist-info → nucliadb_utils-4.0.3.post602.dist-info}/RECORD +6 -6
- {nucliadb_utils-4.0.3.post600.dist-info → nucliadb_utils-4.0.3.post602.dist-info}/WHEEL +0 -0
- {nucliadb_utils-4.0.3.post600.dist-info → nucliadb_utils-4.0.3.post602.dist-info}/top_level.txt +0 -0
- {nucliadb_utils-4.0.3.post600.dist-info → nucliadb_utils-4.0.3.post602.dist-info}/zip-safe +0 -0
nucliadb_utils/tests/fixtures.py
CHANGED
@@ -23,6 +23,26 @@ import pytest
|
|
23
23
|
from pytest_lazy_fixtures import lazy_fixture
|
24
24
|
|
25
25
|
|
26
|
+
@pytest.fixture(scope="function")
|
27
|
+
def onprem_nucliadb():
|
28
|
+
from nucliadb_utils.settings import nuclia_settings
|
29
|
+
|
30
|
+
original = nuclia_settings.onprem
|
31
|
+
nuclia_settings.onprem = True
|
32
|
+
yield
|
33
|
+
nuclia_settings.onprem = original
|
34
|
+
|
35
|
+
|
36
|
+
@pytest.fixture(scope="function")
|
37
|
+
def hosted_nucliadb():
|
38
|
+
from nucliadb_utils.settings import nuclia_settings
|
39
|
+
|
40
|
+
original = nuclia_settings.onprem
|
41
|
+
nuclia_settings.onprem = False
|
42
|
+
yield
|
43
|
+
nuclia_settings.onprem = original
|
44
|
+
|
45
|
+
|
26
46
|
def get_testing_storage_backend(default="gcs"):
|
27
47
|
return os.environ.get("TESTING_STORAGE_BACKEND", default)
|
28
48
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: nucliadb_utils
|
3
|
-
Version: 4.0.3.
|
3
|
+
Version: 4.0.3.post602
|
4
4
|
Home-page: https://nuclia.com
|
5
5
|
License: BSD
|
6
6
|
Classifier: Development Status :: 4 - Beta
|
@@ -23,8 +23,8 @@ Requires-Dist: PyNaCl
|
|
23
23
|
Requires-Dist: pyjwt >=2.4.0
|
24
24
|
Requires-Dist: memorylru >=1.1.2
|
25
25
|
Requires-Dist: mrflagly
|
26
|
-
Requires-Dist: nucliadb-protos >=4.0.3.
|
27
|
-
Requires-Dist: nucliadb-telemetry >=4.0.3.
|
26
|
+
Requires-Dist: nucliadb-protos >=4.0.3.post602
|
27
|
+
Requires-Dist: nucliadb-telemetry >=4.0.3.post602
|
28
28
|
Provides-Extra: cache
|
29
29
|
Requires-Dist: redis >=4.3.4 ; extra == 'cache'
|
30
30
|
Requires-Dist: orjson >=3.6.7 ; extra == 'cache'
|
@@ -52,14 +52,14 @@ nucliadb_utils/storages/utils.py,sha256=8g2rIwJeYIumQLOB47Yw1rx3twlhRB_cJxer65Qf
|
|
52
52
|
nucliadb_utils/tests/__init__.py,sha256=Oo9CAE7B0eW5VHn8sHd6o30SQzOWUhktLPRXdlDOleA,1456
|
53
53
|
nucliadb_utils/tests/asyncbenchmark.py,sha256=x4be2IwCawle9zWgMOJkmwoUwk5p1tv7cLQGmybkEOg,10587
|
54
54
|
nucliadb_utils/tests/azure.py,sha256=ji-BV54m_MHAB9KdSToYgsZ8OZZ-C5Yq2VqWOYZNMs4,3668
|
55
|
-
nucliadb_utils/tests/fixtures.py,sha256=
|
55
|
+
nucliadb_utils/tests/fixtures.py,sha256=rmix1VGpPULBxJd_5ScgVD4Z0nRrkNOVt-uTW_WoURU,2144
|
56
56
|
nucliadb_utils/tests/gcs.py,sha256=Ii8BCHUAAxFIzX67pKTRFRgbqv3FJ6DrPAdAx2Xod1Y,3036
|
57
57
|
nucliadb_utils/tests/indexing.py,sha256=YW2QhkhO9Q_8A4kKWJaWSvXvyQ_AiAwY1VylcfVQFxk,1513
|
58
58
|
nucliadb_utils/tests/local.py,sha256=c3gZJJWmvOftruJkIQIwB3q_hh3uxEhqGIAVWim1Bbk,1343
|
59
59
|
nucliadb_utils/tests/nats.py,sha256=Tosonm9A9cusImyji80G4pgdXEHNVPaCLT5TbFK_ra0,7543
|
60
60
|
nucliadb_utils/tests/s3.py,sha256=YB8QqDaBXxyhHonEHmeBbRRDmvB7sTOaKBSi8KBGokg,2330
|
61
|
-
nucliadb_utils-4.0.3.
|
62
|
-
nucliadb_utils-4.0.3.
|
63
|
-
nucliadb_utils-4.0.3.
|
64
|
-
nucliadb_utils-4.0.3.
|
65
|
-
nucliadb_utils-4.0.3.
|
61
|
+
nucliadb_utils-4.0.3.post602.dist-info/METADATA,sha256=zYwnmt6KeiIBlFx0O7risLDV6mob6HkYxFGMTNZEm0c,2096
|
62
|
+
nucliadb_utils-4.0.3.post602.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
63
|
+
nucliadb_utils-4.0.3.post602.dist-info/top_level.txt,sha256=fE3vJtALTfgh7bcAWcNhcfXkNPp_eVVpbKK-2IYua3E,15
|
64
|
+
nucliadb_utils-4.0.3.post602.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
65
|
+
nucliadb_utils-4.0.3.post602.dist-info/RECORD,,
|
File without changes
|
{nucliadb_utils-4.0.3.post600.dist-info → nucliadb_utils-4.0.3.post602.dist-info}/top_level.txt
RENAMED
File without changes
|
File without changes
|