nucliadb-utils 6.9.0.post5078__py3-none-any.whl → 6.9.0.post5086__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.
Potentially problematic release.
This version of nucliadb-utils might be problematic. Click here for more details.
- nucliadb_utils/tests/nats.py +11 -0
- {nucliadb_utils-6.9.0.post5078.dist-info → nucliadb_utils-6.9.0.post5086.dist-info}/METADATA +3 -3
- {nucliadb_utils-6.9.0.post5078.dist-info → nucliadb_utils-6.9.0.post5086.dist-info}/RECORD +5 -5
- {nucliadb_utils-6.9.0.post5078.dist-info → nucliadb_utils-6.9.0.post5086.dist-info}/WHEEL +0 -0
- {nucliadb_utils-6.9.0.post5078.dist-info → nucliadb_utils-6.9.0.post5086.dist-info}/top_level.txt +0 -0
nucliadb_utils/tests/nats.py
CHANGED
|
@@ -18,12 +18,16 @@
|
|
|
18
18
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
19
19
|
|
|
20
20
|
import socket
|
|
21
|
+
from typing import AsyncIterator
|
|
21
22
|
|
|
22
23
|
import nats
|
|
23
24
|
import pytest
|
|
24
25
|
from pytest_docker_fixtures import images # type: ignore
|
|
25
26
|
from pytest_docker_fixtures.containers._base import BaseImage # type: ignore
|
|
26
27
|
|
|
28
|
+
from nucliadb_utils.nats import NatsConnectionManager
|
|
29
|
+
from nucliadb_utils.utilities import start_nats_manager, stop_nats_manager
|
|
30
|
+
|
|
27
31
|
images.settings["nats"] = {
|
|
28
32
|
"image": "nats",
|
|
29
33
|
"version": "2.10.21",
|
|
@@ -63,3 +67,10 @@ async def nats_server(natsd: str):
|
|
|
63
67
|
nc = await nats.connect(servers=[natsd])
|
|
64
68
|
await nc.drain()
|
|
65
69
|
await nc.close()
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
@pytest.fixture(scope="function")
|
|
73
|
+
async def nats_manager(nats_server: str) -> AsyncIterator[NatsConnectionManager]:
|
|
74
|
+
ncm = await start_nats_manager("nucliadb_tests", [nats_server], None)
|
|
75
|
+
yield ncm
|
|
76
|
+
await stop_nats_manager()
|
{nucliadb_utils-6.9.0.post5078.dist-info → nucliadb_utils-6.9.0.post5086.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: nucliadb_utils
|
|
3
|
-
Version: 6.9.0.
|
|
3
|
+
Version: 6.9.0.post5086
|
|
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.9.0.
|
|
31
|
-
Requires-Dist: nucliadb-telemetry>=6.9.0.
|
|
30
|
+
Requires-Dist: nucliadb-protos>=6.9.0.post5086
|
|
31
|
+
Requires-Dist: nucliadb-telemetry>=6.9.0.post5086
|
|
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"
|
|
@@ -55,9 +55,9 @@ nucliadb_utils/tests/azure.py,sha256=rt1KRSYZW1EYhKy4Q0i7IEL9vdoOU6BYw2__S51YfGg
|
|
|
55
55
|
nucliadb_utils/tests/fixtures.py,sha256=4lzz-khYvbGzdbT18IG6KKg40f7CVex2q3ho88I-jL8,3799
|
|
56
56
|
nucliadb_utils/tests/gcs.py,sha256=JNqp5ymeNNU9Ci8rNYTh7-VqP4fjybElhyB3ap7EV1c,4721
|
|
57
57
|
nucliadb_utils/tests/local.py,sha256=z9E11_ol1mu7N8Y6PkjKl-WMPPMl7JqQbDj3uhVa1A0,1933
|
|
58
|
-
nucliadb_utils/tests/nats.py,sha256=
|
|
58
|
+
nucliadb_utils/tests/nats.py,sha256=hAV1bVywPZG7l21GdA62z2saIA8BbjogJhtU_eXarjE,2296
|
|
59
59
|
nucliadb_utils/tests/s3.py,sha256=kz9ULxrAYLVslZ59I8dtweZ9DJz5R8Ioy2XYrveZzHw,3829
|
|
60
|
-
nucliadb_utils-6.9.0.
|
|
61
|
-
nucliadb_utils-6.9.0.
|
|
62
|
-
nucliadb_utils-6.9.0.
|
|
63
|
-
nucliadb_utils-6.9.0.
|
|
60
|
+
nucliadb_utils-6.9.0.post5086.dist-info/METADATA,sha256=UPGaFspgEzjbMt3NqRPPCiCF_lZo8v2ZVb5SS2qt04Q,2180
|
|
61
|
+
nucliadb_utils-6.9.0.post5086.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
62
|
+
nucliadb_utils-6.9.0.post5086.dist-info/top_level.txt,sha256=fE3vJtALTfgh7bcAWcNhcfXkNPp_eVVpbKK-2IYua3E,15
|
|
63
|
+
nucliadb_utils-6.9.0.post5086.dist-info/RECORD,,
|
|
File without changes
|
{nucliadb_utils-6.9.0.post5078.dist-info → nucliadb_utils-6.9.0.post5086.dist-info}/top_level.txt
RENAMED
|
File without changes
|