nvidia-nat-test 1.4.0a20251106__py3-none-any.whl → 1.4.0a20251107__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 nvidia-nat-test might be problematic. Click here for more details.
- nat/test/plugin.py +49 -0
- {nvidia_nat_test-1.4.0a20251106.dist-info → nvidia_nat_test-1.4.0a20251107.dist-info}/METADATA +2 -2
- {nvidia_nat_test-1.4.0a20251106.dist-info → nvidia_nat_test-1.4.0a20251107.dist-info}/RECORD +8 -8
- {nvidia_nat_test-1.4.0a20251106.dist-info → nvidia_nat_test-1.4.0a20251107.dist-info}/WHEEL +0 -0
- {nvidia_nat_test-1.4.0a20251106.dist-info → nvidia_nat_test-1.4.0a20251107.dist-info}/entry_points.txt +0 -0
- {nvidia_nat_test-1.4.0a20251106.dist-info → nvidia_nat_test-1.4.0a20251107.dist-info}/licenses/LICENSE-3rd-party.txt +0 -0
- {nvidia_nat_test-1.4.0a20251106.dist-info → nvidia_nat_test-1.4.0a20251107.dist-info}/licenses/LICENSE.md +0 -0
- {nvidia_nat_test-1.4.0a20251106.dist-info → nvidia_nat_test-1.4.0a20251107.dist-info}/top_level.txt +0 -0
nat/test/plugin.py
CHANGED
|
@@ -722,3 +722,52 @@ def oauth2_client_credentials_fixture(oauth2_server_url: str, fail_missing: bool
|
|
|
722
722
|
if fail_missing:
|
|
723
723
|
raise RuntimeError(reason)
|
|
724
724
|
pytest.skip(reason=reason)
|
|
725
|
+
|
|
726
|
+
|
|
727
|
+
@pytest.fixture(name="local_sandbox_url", scope="session")
|
|
728
|
+
def local_sandbox_url_fixture(fail_missing: bool) -> str:
|
|
729
|
+
"""Check if sandbox server is running before running tests."""
|
|
730
|
+
import requests
|
|
731
|
+
url = os.environ.get("NAT_CI_SANDBOX_URL", "http://127.0.0.1:6000")
|
|
732
|
+
try:
|
|
733
|
+
response = requests.get(url, timeout=5)
|
|
734
|
+
response.raise_for_status()
|
|
735
|
+
return url
|
|
736
|
+
except Exception:
|
|
737
|
+
reason = (f"Sandbox server is not running at {url}. "
|
|
738
|
+
"Please start it with: cd src/nat/tool/code_execution/local_sandbox && ./start_local_sandbox.sh")
|
|
739
|
+
if fail_missing:
|
|
740
|
+
raise RuntimeError(reason)
|
|
741
|
+
pytest.skip(reason)
|
|
742
|
+
|
|
743
|
+
|
|
744
|
+
@pytest.fixture(name="sandbox_config", scope="session")
|
|
745
|
+
def sandbox_config_fixture(local_sandbox_url: str) -> dict[str, typing.Any]:
|
|
746
|
+
"""Configuration for sandbox testing."""
|
|
747
|
+
return {
|
|
748
|
+
"base_url": local_sandbox_url,
|
|
749
|
+
"execute_url": f"{local_sandbox_url.rstrip('/')}/execute",
|
|
750
|
+
"timeout": int(os.environ.get("SANDBOX_TIMEOUT", "30")),
|
|
751
|
+
"connection_timeout": 5
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
|
|
755
|
+
@pytest.fixture(name="piston_url", scope="session")
|
|
756
|
+
def piston_url_fixture(fail_missing: bool) -> str:
|
|
757
|
+
"""
|
|
758
|
+
Configuration for piston testing.
|
|
759
|
+
|
|
760
|
+
The public piston server limits usage to five requests per minute.
|
|
761
|
+
"""
|
|
762
|
+
import requests
|
|
763
|
+
url = os.environ.get("NAT_CI_PISTON_URL", "https://emkc.org/api/v2/piston")
|
|
764
|
+
try:
|
|
765
|
+
response = requests.get(f"{url.rstrip('/')}/runtimes", timeout=30)
|
|
766
|
+
response.raise_for_status()
|
|
767
|
+
return url
|
|
768
|
+
except Exception:
|
|
769
|
+
reason = (f"Piston server is not running at {url}. "
|
|
770
|
+
"Please start it with: cd src/nat/tool/code_execution/local_sandbox && ./start_local_sandbox.sh")
|
|
771
|
+
if fail_missing:
|
|
772
|
+
raise RuntimeError(reason)
|
|
773
|
+
pytest.skip(reason)
|
{nvidia_nat_test-1.4.0a20251106.dist-info → nvidia_nat_test-1.4.0a20251107.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: nvidia-nat-test
|
|
3
|
-
Version: 1.4.
|
|
3
|
+
Version: 1.4.0a20251107
|
|
4
4
|
Summary: Testing utilities for NeMo Agent toolkit
|
|
5
5
|
Author: NVIDIA Corporation
|
|
6
6
|
Maintainer: NVIDIA Corporation
|
|
@@ -16,7 +16,7 @@ Requires-Python: <3.14,>=3.11
|
|
|
16
16
|
Description-Content-Type: text/markdown
|
|
17
17
|
License-File: LICENSE-3rd-party.txt
|
|
18
18
|
License-File: LICENSE.md
|
|
19
|
-
Requires-Dist: nvidia-nat==v1.4.
|
|
19
|
+
Requires-Dist: nvidia-nat==v1.4.0a20251107
|
|
20
20
|
Requires-Dist: langchain-community~=0.3
|
|
21
21
|
Requires-Dist: pytest~=8.3
|
|
22
22
|
Dynamic: license-file
|
{nvidia_nat_test-1.4.0a20251106.dist-info → nvidia_nat_test-1.4.0a20251107.dist-info}/RECORD
RENAMED
|
@@ -5,14 +5,14 @@ nat/test/functions.py,sha256=ZxXVzfaLBGOpR5qtmMrKU7q-M9-vVGGj3Xi5mrw4vHY,3557
|
|
|
5
5
|
nat/test/llm.py,sha256=f6bz6arAQjhjuOKFrLfu_U1LbiyFzQmpM-q8b-WKSrU,9550
|
|
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=FxX-7bsIjY0cMKESEeMI47ZDICbhuWkEe1pUDJjR_GQ,28499
|
|
9
9
|
nat/test/register.py,sha256=o1BEA5fyxyFyCxXhQ6ArmtuNpgRyTEfvw6HdBgECPLI,897
|
|
10
10
|
nat/test/tool_test_runner.py,sha256=SxavwXHkvCQDl_PUiiiqgvGfexKJJTeBdI5i1qk6AzI,21712
|
|
11
11
|
nat/test/utils.py,sha256=GyhxIZ1CcUPcc8RMRyCzpHBEwVifeqiGxT3c9Pp0KAU,5774
|
|
12
|
-
nvidia_nat_test-1.4.
|
|
13
|
-
nvidia_nat_test-1.4.
|
|
14
|
-
nvidia_nat_test-1.4.
|
|
15
|
-
nvidia_nat_test-1.4.
|
|
16
|
-
nvidia_nat_test-1.4.
|
|
17
|
-
nvidia_nat_test-1.4.
|
|
18
|
-
nvidia_nat_test-1.4.
|
|
12
|
+
nvidia_nat_test-1.4.0a20251107.dist-info/licenses/LICENSE-3rd-party.txt,sha256=fOk5jMmCX9YoKWyYzTtfgl-SUy477audFC5hNY4oP7Q,284609
|
|
13
|
+
nvidia_nat_test-1.4.0a20251107.dist-info/licenses/LICENSE.md,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
|
|
14
|
+
nvidia_nat_test-1.4.0a20251107.dist-info/METADATA,sha256=jGHaCtfJVyngPdXauoWjyigY8ToGFP1RlVaOeBRTxqc,1925
|
|
15
|
+
nvidia_nat_test-1.4.0a20251107.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
16
|
+
nvidia_nat_test-1.4.0a20251107.dist-info/entry_points.txt,sha256=7dOP9XB6iMDqvav3gYx9VWUwA8RrFzhbAa8nGeC8e4Y,99
|
|
17
|
+
nvidia_nat_test-1.4.0a20251107.dist-info/top_level.txt,sha256=8-CJ2cP6-f0ZReXe5Hzqp-5pvzzHz-5Ds5H2bGqh1-U,4
|
|
18
|
+
nvidia_nat_test-1.4.0a20251107.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{nvidia_nat_test-1.4.0a20251106.dist-info → nvidia_nat_test-1.4.0a20251107.dist-info}/top_level.txt
RENAMED
|
File without changes
|