nvidia-nat-test 1.3a20250819__py3-none-any.whl → 1.3.0a20250823__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 CHANGED
@@ -68,7 +68,6 @@ def register_components_fixture():
68
68
  discover_and_register_plugins(PluginTypes.ALL)
69
69
 
70
70
  # Also import the nat.test.register module to register test-only components
71
- import nat.test.register # pylint: disable=unused-import # noqa: F401
72
71
 
73
72
 
74
73
  @pytest.fixture(name="module_registry", scope="module", autouse=True)
nat/test/register.py CHANGED
@@ -13,7 +13,6 @@
13
13
  # See the License for the specific language governing permissions and
14
14
  # limitations under the License.
15
15
 
16
- # pylint: disable=unused-import
17
16
  # flake8: noqa
18
17
  # isort:skip_file
19
18
 
@@ -326,11 +326,10 @@ class ToolTestRunner:
326
326
  result = await tool_function(input_data)
327
327
  else:
328
328
  result = tool_function(input_data)
329
+ elif asyncio.iscoroutinefunction(tool_function):
330
+ result = await tool_function()
329
331
  else:
330
- if asyncio.iscoroutinefunction(tool_function):
331
- result = await tool_function()
332
- else:
333
- result = tool_function()
332
+ result = tool_function()
334
333
 
335
334
  # Assert expected output if provided
336
335
  if expected_output is not None:
@@ -417,11 +416,10 @@ class ToolTestRunner:
417
416
  result = await tool_function(input_data)
418
417
  else:
419
418
  result = tool_function(input_data)
419
+ elif asyncio.iscoroutinefunction(tool_function):
420
+ result = await tool_function()
420
421
  else:
421
- if asyncio.iscoroutinefunction(tool_function):
422
- result = await tool_function()
423
- else:
424
- result = tool_function()
422
+ result = tool_function()
425
423
 
426
424
  # Assert expected output if provided
427
425
  if expected_output is not None:
@@ -1,12 +1,12 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nvidia-nat-test
3
- Version: 1.3a20250819
3
+ Version: 1.3.0a20250823
4
4
  Summary: Testing utilities for NeMo Agent toolkit
5
5
  Keywords: ai,rag,agents
6
6
  Classifier: Programming Language :: Python
7
7
  Requires-Python: <3.13,>=3.11
8
8
  Description-Content-Type: text/markdown
9
- Requires-Dist: nvidia-nat==v1.3a20250819
9
+ Requires-Dist: nvidia-nat==v1.3.0a20250823
10
10
  Requires-Dist: langchain-community~=0.3
11
11
  Requires-Dist: pytest~=8.3
12
12
 
@@ -0,0 +1,14 @@
1
+ nat/meta/pypi.md,sha256=LLKJHg5oN1-M9Pqfk3Bmphkk4O2TFsyiixuK5T0Y-gw,1100
2
+ nat/test/__init__.py,sha256=_RnTJnsUucHvla_nYKqD4O4g8Bz0tcuDRzWk1bEhcy0,875
3
+ nat/test/embedder.py,sha256=ClDyK1kna4hCBSlz71gK1B-ZjlwcBHTDQRekoNM81Bs,1809
4
+ nat/test/functions.py,sha256=0ScrdsjcxCsPRLnyb5gfwukmvZxFi_ptCswLSIG0DVY,3095
5
+ nat/test/memory.py,sha256=xki_A2yiMhEZuQk60K7t04QRqf32nQqnfzD5Iv7fkvw,1456
6
+ nat/test/object_store_tests.py,sha256=PyJioOtoSzILPq6LuD-sOZ_89PIcgXWZweoHBQpK2zQ,4281
7
+ nat/test/plugin.py,sha256=A__zjl49WjmQIl39ZfyTC3fpFj8yoQmSYPWUCw-RO3g,3535
8
+ nat/test/register.py,sha256=fbCLr3E4u8PYMFUlkRNlg53Td2YJ80iQCyxpRIbGId4,859
9
+ nat/test/tool_test_runner.py,sha256=EP5Zo_YmfCOeeifzSv1ztx6xF-E-GVGYktN5hkZIBSc,17405
10
+ nvidia_nat_test-1.3.0a20250823.dist-info/METADATA,sha256=fHe_pZdATKRrIEvl1w2FlTxg8OZYQ6iySSrkhjuciDY,1466
11
+ nvidia_nat_test-1.3.0a20250823.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
12
+ nvidia_nat_test-1.3.0a20250823.dist-info/entry_points.txt,sha256=7dOP9XB6iMDqvav3gYx9VWUwA8RrFzhbAa8nGeC8e4Y,99
13
+ nvidia_nat_test-1.3.0a20250823.dist-info/top_level.txt,sha256=8-CJ2cP6-f0ZReXe5Hzqp-5pvzzHz-5Ds5H2bGqh1-U,4
14
+ nvidia_nat_test-1.3.0a20250823.dist-info/RECORD,,
@@ -1,14 +0,0 @@
1
- nat/meta/pypi.md,sha256=LLKJHg5oN1-M9Pqfk3Bmphkk4O2TFsyiixuK5T0Y-gw,1100
2
- nat/test/__init__.py,sha256=_RnTJnsUucHvla_nYKqD4O4g8Bz0tcuDRzWk1bEhcy0,875
3
- nat/test/embedder.py,sha256=ClDyK1kna4hCBSlz71gK1B-ZjlwcBHTDQRekoNM81Bs,1809
4
- nat/test/functions.py,sha256=0ScrdsjcxCsPRLnyb5gfwukmvZxFi_ptCswLSIG0DVY,3095
5
- nat/test/memory.py,sha256=xki_A2yiMhEZuQk60K7t04QRqf32nQqnfzD5Iv7fkvw,1456
6
- nat/test/object_store_tests.py,sha256=PyJioOtoSzILPq6LuD-sOZ_89PIcgXWZweoHBQpK2zQ,4281
7
- nat/test/plugin.py,sha256=fp39ib0W63vfqX6Ssvq4sCuSd8Lm6yQyknL3_qRijgI,3610
8
- nat/test/register.py,sha256=jU1pW5wf20ZmCOTgkaQshKZfvYh8_-sMJ4P3xXilfTY,891
9
- nat/test/tool_test_runner.py,sha256=ccErldob2VwBbVL0_pmLrOcKLc18qYjxeAEACYoKKGQ,17469
10
- nvidia_nat_test-1.3a20250819.dist-info/METADATA,sha256=v3TfNsmsGHPnZkFfZJujVYrY9hKvet6VhIXJU_hZA70,1462
11
- nvidia_nat_test-1.3a20250819.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
12
- nvidia_nat_test-1.3a20250819.dist-info/entry_points.txt,sha256=7dOP9XB6iMDqvav3gYx9VWUwA8RrFzhbAa8nGeC8e4Y,99
13
- nvidia_nat_test-1.3a20250819.dist-info/top_level.txt,sha256=8-CJ2cP6-f0ZReXe5Hzqp-5pvzzHz-5Ds5H2bGqh1-U,4
14
- nvidia_nat_test-1.3a20250819.dist-info/RECORD,,