nvidia-nat-test 1.3.0a20250924__py3-none-any.whl → 1.3.0a20250926__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.
- nat/test/plugin.py +19 -0
- {nvidia_nat_test-1.3.0a20250924.dist-info → nvidia_nat_test-1.3.0a20250926.dist-info}/METADATA +2 -2
- {nvidia_nat_test-1.3.0a20250924.dist-info → nvidia_nat_test-1.3.0a20250926.dist-info}/RECORD +6 -6
- {nvidia_nat_test-1.3.0a20250924.dist-info → nvidia_nat_test-1.3.0a20250926.dist-info}/WHEEL +0 -0
- {nvidia_nat_test-1.3.0a20250924.dist-info → nvidia_nat_test-1.3.0a20250926.dist-info}/entry_points.txt +0 -0
- {nvidia_nat_test-1.3.0a20250924.dist-info → nvidia_nat_test-1.3.0a20250926.dist-info}/top_level.txt +0 -0
nat/test/plugin.py
CHANGED
@@ -14,9 +14,13 @@
|
|
14
14
|
# limitations under the License.
|
15
15
|
|
16
16
|
import os
|
17
|
+
import typing
|
17
18
|
|
18
19
|
import pytest
|
19
20
|
|
21
|
+
if typing.TYPE_CHECKING:
|
22
|
+
from docker.client import DockerClient
|
23
|
+
|
20
24
|
|
21
25
|
def pytest_addoption(parser: pytest.Parser):
|
22
26
|
"""
|
@@ -203,6 +207,21 @@ def azure_openai_keys_fixture(fail_missing: bool):
|
|
203
207
|
fail_missing=fail_missing)
|
204
208
|
|
205
209
|
|
210
|
+
@pytest.fixture(name="require_docker", scope='session')
|
211
|
+
def require_docker_fixture(fail_missing: bool) -> "DockerClient":
|
212
|
+
"""
|
213
|
+
Use for integration tests that require Docker to be running.
|
214
|
+
"""
|
215
|
+
try:
|
216
|
+
from docker.client import DockerClient
|
217
|
+
yield DockerClient()
|
218
|
+
except Exception as e:
|
219
|
+
reason = f"Unable to connect to Docker daemon: {e}"
|
220
|
+
if fail_missing:
|
221
|
+
raise RuntimeError(reason) from e
|
222
|
+
pytest.skip(reason=reason)
|
223
|
+
|
224
|
+
|
206
225
|
@pytest.fixture(name="restore_environ")
|
207
226
|
def restore_environ_fixture():
|
208
227
|
orig_vars = os.environ.copy()
|
{nvidia_nat_test-1.3.0a20250924.dist-info → nvidia_nat_test-1.3.0a20250926.dist-info}/METADATA
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: nvidia-nat-test
|
3
|
-
Version: 1.3.
|
3
|
+
Version: 1.3.0a20250926
|
4
4
|
Summary: Testing utilities for NeMo Agent toolkit
|
5
5
|
Keywords: ai,rag,agents
|
6
6
|
Classifier: Programming Language :: Python
|
@@ -9,7 +9,7 @@ Classifier: Programming Language :: Python :: 3.12
|
|
9
9
|
Classifier: Programming Language :: Python :: 3.13
|
10
10
|
Requires-Python: <3.14,>=3.11
|
11
11
|
Description-Content-Type: text/markdown
|
12
|
-
Requires-Dist: nvidia-nat==v1.3.
|
12
|
+
Requires-Dist: nvidia-nat==v1.3.0a20250926
|
13
13
|
Requires-Dist: langchain-community~=0.3
|
14
14
|
Requires-Dist: pytest~=8.3
|
15
15
|
|
{nvidia_nat_test-1.3.0a20250924.dist-info → nvidia_nat_test-1.3.0a20250926.dist-info}/RECORD
RENAMED
@@ -5,11 +5,11 @@ nat/test/functions.py,sha256=0ScrdsjcxCsPRLnyb5gfwukmvZxFi_ptCswLSIG0DVY,3095
|
|
5
5
|
nat/test/llm.py,sha256=osJWGsJN7x-JGOaitueKeSwuJPVmnIFqJUCz28ngSRg,8215
|
6
6
|
nat/test/memory.py,sha256=xki_A2yiMhEZuQk60K7t04QRqf32nQqnfzD5Iv7fkvw,1456
|
7
7
|
nat/test/object_store_tests.py,sha256=PyJioOtoSzILPq6LuD-sOZ_89PIcgXWZweoHBQpK2zQ,4281
|
8
|
-
nat/test/plugin.py,sha256=
|
8
|
+
nat/test/plugin.py,sha256=WgBTKdV77j5ANlhiFlR6DrEG1H2R1r5yqJFEqkvG9mI,8315
|
9
9
|
nat/test/register.py,sha256=FZLjc3-G1lniSUJ3qVOr0aQ-aoH1F493JMFtKbZG56w,877
|
10
10
|
nat/test/tool_test_runner.py,sha256=SxavwXHkvCQDl_PUiiiqgvGfexKJJTeBdI5i1qk6AzI,21712
|
11
|
-
nvidia_nat_test-1.3.
|
12
|
-
nvidia_nat_test-1.3.
|
13
|
-
nvidia_nat_test-1.3.
|
14
|
-
nvidia_nat_test-1.3.
|
15
|
-
nvidia_nat_test-1.3.
|
11
|
+
nvidia_nat_test-1.3.0a20250926.dist-info/METADATA,sha256=XSThyj1B8rl1ZUY499_YuDlOdSq-n3_Elfa-qoNidw8,1619
|
12
|
+
nvidia_nat_test-1.3.0a20250926.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
13
|
+
nvidia_nat_test-1.3.0a20250926.dist-info/entry_points.txt,sha256=7dOP9XB6iMDqvav3gYx9VWUwA8RrFzhbAa8nGeC8e4Y,99
|
14
|
+
nvidia_nat_test-1.3.0a20250926.dist-info/top_level.txt,sha256=8-CJ2cP6-f0ZReXe5Hzqp-5pvzzHz-5Ds5H2bGqh1-U,4
|
15
|
+
nvidia_nat_test-1.3.0a20250926.dist-info/RECORD,,
|
File without changes
|
File without changes
|
{nvidia_nat_test-1.3.0a20250924.dist-info → nvidia_nat_test-1.3.0a20250926.dist-info}/top_level.txt
RENAMED
File without changes
|