Documentation for test_resolution_to_filled.py
Test File
- Source:
test/src/ontobdc/run/plugin/capability/test_resolution_to_filled.py - Unit under test:
ResolutionToFilledCapability - Style:
unittestwithpatch
What This File Tests
This document describes the step that prepares input data for an already selected capability by using loaders and a parameter dependency evaluator.
Documented Scenario
test_execute_fills_capability_inputs
What is tested
- The context starts with
selected_capability_iddefined. CapabilityLoaderreturns the matching dummy capability.DagParametersEvaluatorreports that no parameters are missing.- The capability propagates the selection to the final identifier used by the flow.
Expected result
- The
capability_idparameter is set toorg.example.capability.test. - The flow completes without requesting additional data and without error.
What is mocked
CapabilityLoader.ParameterLoader.DagParametersEvaluator.
What is not mocked
ResolutionToFilledCapability.CliContextAdapter.DummyQueryCapability, used as a simple concrete implementation.- The real logic that writes
capability_idinto the context.
Notes
- The test covers the minimal happy path.
- There is no coverage for scenarios where required parameters are missing.