pyvider
2025-06-05
Massive test suite expansion (partially via Jules automated assistant) covering functions,...
38 files · 2,434+ · 1,016-
Test Suite Expansion
10 files changed
test_function_adapter.pyAdded `tests/functions/functions/test_function_adapter.py` (135 lines) with additional function a...test_provider_handler_hub_interaction.pyAdded `tests/handler/test_provider_handler_hub_interaction.py` (117 lines) testing handler-hub co...test_resource_registration_and_base.pyAdded `tests/resources/test_resource_registration_and_base.py` (105 lines, in two locations) test...discovery_test_pkgs_simpleAdded `tests/hub/discovery_test_pkgs_simple/` with simplified discovery test fixturestest_component_discovery.pySignificantly reworked `tests/hub/test_component_discovery.py` (~170 lines of changes) and `test_...test_component_registry.pySignificantly reworked `tests/hub/test_component_discovery.py` (~170 lines of changes) and `test_...conftest.pyUpdated `tests/conftest.py` with ~125 lines of changes to shared fixturestest_function_adapter.pyUpdated existing function tests: `test_function_adapter.py` (~80 lines), `test_function_registrat...test_function_registration.pyUpdated existing function tests: `test_function_adapter.py` (~80 lines), `test_function_registrat...test_data_source_registration.pyUpdated `tests/data_sources/test_data_source_registration.py` with 25 lines of changes
- Added
tests/functions/functions/test_function_adapter.py(135 lines) with additional function adapter tests qualify internal1 file
test_function_adapter.py
- Added
tests/handler/test_provider_handler_hub_interaction.py(117 lines) testing handler-hub communication qualify internal1 file
test_provider_handler_hub_interaction.py
- Added
tests/resources/test_resource_registration_and_base.py(105 lines, in two locations) testing resource registration and base class behavior qualify behavioral1 file
test_resource_registration_and_base.py
- Added
tests/hub/discovery_test_pkgs_simple/with simplified discovery test fixtures qualify internal1 file
discovery_test_pkgs_simple
- Significantly reworked
tests/hub/test_component_discovery.py(~170 lines of changes) andtest_component_registry.py(~172 lines of changes) with improved test coverage qualify internal2 files
test_component_discovery.pytest_component_registry.py
- Updated
tests/conftest.pywith ~125 lines of changes to shared fixtures qualify internal1 file
conftest.py
- Updated existing function tests:
test_function_adapter.py(~80 lines),test_function_registration.py(~44 lines) qualify internal2 files
test_function_adapter.pytest_function_registration.py
- Updated
tests/data_sources/test_data_source_registration.pywith 25 lines of changes qualify internal1 file
test_data_source_registration.py
Exception Cleanup
1 file changed
EXCEPTION_HIERARCHY.mdChanges to EXCEPTION_HIERARCHY.md
- Minor import fixes across all exception submodules (base, function, grpc, provider, registry, resource, schema, serialization, validation) removing redundant imports
remediate
internal
56 files
test_file_content.pyEXCEPTION_HIERARCHY.mdpyproject.tomldynamic_value.py__init__.pybase.pyfunction.pygrpc.pyprovider.pyregistry.pyresource.pyschema.pyserialization.pyvalidation.pydecorators.pydiscovery.pyvalidators.pywire_format.py__init__.pydynamic_value.pyconfig.pyprovider.pycontext.pydecorators.pylifecycle.pyprotocol.pytypes.pytest_dynamic_value_conversion.pytest_exceptions_hierarchy.pytest_function_adapter.pytest_function_registration.pytest_provider_handler_delegation.py__init__.py__init__.py__init__.py__init__.pysample_discovered_function.pysample_function.py__init__.pysample_discovered_resource.pysample_resource.pyerror_module.py__init__.py__init__.pyfaulty_mod.py__init__.pyexternal_resource.py__init__.py__init__.pydiscovered_items.pytest_component_registry.pytest_validators.pytest_resource_registration_and_base.pytest_resource_registration.pytest_wire_type_encoder.pyuv.lock
Source Code Updates
13 files changed
adapters.pyReworked `src/pyvider/functions/adapters.py` (~138 lines of changes) with improved adapter logicbase.pyExpanded `src/pyvider/functions/base.py` (~262 lines of changes) with enhanced base function classcomponents.pyUpdated `src/pyvider/hub/components.py` (~49 lines), `discovery.py` (~66 lines), `validators.py` ...discovery.pyUpdated `src/pyvider/hub/components.py` (~49 lines), `discovery.py` (~66 lines), `validators.py` ...validators.pyUpdated `src/pyvider/hub/components.py` (~49 lines), `discovery.py` (~66 lines), `validators.py` ...base.pyReworked `src/pyvider/providers/base.py` (~45 lines), `provider.py` (~69 lines)provider.pyReworked `src/pyvider/providers/base.py` (~45 lines), `provider.py` (~69 lines)base.pySimplified `src/pyvider/resources/base.py` (~200 lines of changes) with cleaner resource lifecyclecontext.pyUpdated `resources/context.py`, `decorators.py`, `lifecycle.py`, `protocol.py`, `types.py`decorators.pyUpdated `resources/context.py`, `decorators.py`, `lifecycle.py`, `protocol.py`, `types.py`lifecycle.pyUpdated `resources/context.py`, `decorators.py`, `lifecycle.py`, `protocol.py`, `types.py`protocol.pyUpdated `resources/context.py`, `decorators.py`, `lifecycle.py`, `protocol.py`, `types.py`types.pyUpdated `resources/context.py`, `decorators.py`, `lifecycle.py`, `protocol.py`, `types.py`
- Reworked
src/pyvider/functions/adapters.py(~138 lines of changes) with improved adapter logic interface internal1 file
adapters.py
- Expanded
src/pyvider/functions/base.py(~262 lines of changes) with enhanced base function class decouple internal1 file
base.py
- Updated
src/pyvider/hub/components.py(~49 lines),discovery.py(~66 lines),validators.py(~36 lines) decouple internal3 files
components.pydiscovery.pyvalidators.py
- Reworked
src/pyvider/providers/base.py(~45 lines),provider.py(~69 lines) decouple internal2 files
base.pyprovider.py
- Simplified
src/pyvider/resources/base.py(~200 lines of changes) with cleaner resource lifecycle decouple internal1 file
base.py
- Updated
resources/context.py,decorators.py,lifecycle.py,protocol.py,types.pyinterface internal5 files
context.pydecorators.pylifecycle.pyprotocol.pytypes.py
OpenTofu Installation
1 file changed
install-opentofu.shAdded `install-opentofu.sh` (1358 lines) comprehensive OpenTofu installation script supporting mu...