Python Testing and Project Tools
Check the report environment
BOTIE
Examples, experiments and workspace controls
Connect a tool's inputs to see what it produces. You can try a branch before connecting it to Result.
Try your own inputs
Use a copy of the example to try your own data. Keep the problem's assumptions in mind, and predict the effect of a change before checking the output. You can also add another branch to compare two ways of doing the calculation.
Context for this challenge
Return complete package rows whose installed label differs from reviewed. Read the two version columns, compare them as text, and keep the changed rows. A missing installation is shown as "not installed" and also needs attention.
The report source stayed the same, but its installed environment changed.
Reuse the field readers and comparison from the alert tests. This time the two columns hold version labels. Keep the full package rows where they disagree.
Examples and results
- Reviewed and installed package versions
- package
- sensor-reader
- reviewed
- "2.1"
- installed
- "2.2"
- package
- report-writer
- reviewed
- "1.0"
- installed
- "1.0"
package reviewed installed sensor-reader "2.1" "2.2" report-writer "1.0" "1.0" - Required result
- package
- sensor-reader
- reviewed
- "2.1"
- installed
- "2.2"
package reviewed installed sensor-reader "2.1" "2.2"
- Reviewed and installed package versions
- package
- sensor-reader
- reviewed
- "2.1"
- installed
- "2.1"
- package
- report-writer
- reviewed
- "1.0"
- installed
- "1.0"
package reviewed installed sensor-reader "2.1" "2.1" report-writer "1.0" "1.0" - Required result
[]
Try a fresh construction
This clears this draft, including its undo history. Earlier successful attempts stay recorded. Build again without opening hints to record an independent attempt.
Stuck? Inspect a worked construction
The tools below form one possible solution. You can assemble it, follow its signals, and undo that change to return to your own construction.
Assumptions and test precision
This compares supplied version labels exactly. It does not install packages, resolve version ranges, or establish that matching versions work on the target machine. Numerical tests allow a difference of 0.001. Lists and structures must also have the right shape.
Version labels are not decimal numbers
This check uses the pieces from “Find the changed package”.
BOTIE
- Reviewed and installed package versions
- package
- sensor-reader
- reviewed
- "1.10"
- installed
- "1.1"
- package
- report-writer
- reviewed
- "3.0"
- installed
- "3.0"
package reviewed installed sensor-reader "1.10" "1.1" report-writer "3.0" "3.0"
Saving your prediction runs your current construction on these inputs and checks the earlier examples too.
Build a construction in the workspace above first. This case will test those pieces.
What should you run on the target machine after these labels agree?
Keep the reviewed environment beside the report and rerun its tests.
This compares supplied version labels exactly. It does not install packages, resolve version ranges, or establish that matching versions work on the target machine.