Checking your account

You can read the lesson while its saved answers and constructions load. Learning controls will open once that work is ready.

Python Testing and Project Tools

Find the project checks that need attention

Coding challenges

BOTIE

Return complete check rows whose status is not "passed". Read status, match the text "passed", reverse those decisions and keep the remaining rows. The initial result should show Tests and its boundary-count failure.
Ready to test
0 passed · 0 failed · 3 not run

An empty floor. Start with the information your machine needs.

Received result

Your answer will arrive here.

Examples, experiments and workspace controls
Live values

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.

Start at an output arrow, then click or drag to an input. Drag empty space to pan. Delete removes a selection. Ctrl/Cmd+Z undoes a change.
Context for this challenge

Return complete check rows whose status is not "passed". Read status, match the text "passed", reverse those decisions and keep the remaining rows. The initial result should show Tests and its boundary-count failure.

One successful tool result was mistaken for a passing project.

Read the status column. Match passed, reverse that selection, and keep the original check rows so their details remain visible.

Examples and results
Results for every required project check
  1. check
    Formatting
    status
    passed
    detail
    Source formatting agrees
  2. check
    Lint
    status
    passed
    detail
    No selected lint errors
  3. check
    Type checking
    status
    passed
    detail
    No reported type mismatches
  4. check
    Tests
    status
    failed
    detail
    A reading equal to 25 C was not counted
Required result
  1. check
    Tests
    status
    failed
    detail
    A reading equal to 25 C was not counted
Results for every required project check
  1. check
    Formatting
    status
    passed
    detail
    Check completed successfully
  2. check
    Lint
    status
    passed
    detail
    Check completed successfully
  3. check
    Type checking
    status
    passed
    detail
    Check completed successfully
  4. check
    Tests
    status
    passed
    detail
    Check completed successfully
Required result
[]
Results for every required project check
  1. check
    Formatting
    status
    not run
    detail
    No result for this run
  2. check
    Lint
    status
    not run
    detail
    No result for this run
  3. check
    Type checking
    status
    not run
    detail
    No result for this run
  4. check
    Tests
    status
    not run
    detail
    No result for this run
Required result
  1. check
    Formatting
    status
    not run
    detail
    No result for this run
  2. check
    Lint
    status
    not run
    detail
    No result for this run
  3. check
    Type checking
    status
    not run
    detail
    No result for this run
  4. check
    Tests
    status
    not run
    detail
    No result for this run
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

These are supplied check results, not executions of a formatter, linter or type checker. The table is assumed to include every required check for the same code revision. Numerical tests allow a difference of 0.001. Lists and structures must also have the right shape.

Later checks never ran

This check uses the pieces from “List the checks that still need work”.

BOTIE

Formatting fails, so lint, type checking and tests do not run. Each required check still has its own row explaining whether it failed or never ran.
Results for every required project check
  1. check
    Formatting
    status
    failed
    detail
    A formatting change is required
  2. check
    Lint
    status
    not run
    detail
    Stopped after the earlier failure
  3. check
    Type checking
    status
    not run
    detail
    Stopped after the earlier failure
  4. check
    Tests
    status
    not run
    detail
    Stopped after the earlier failure

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.

Which tool would report a wrong result that still has valid types?

Read each required check result instead of treating one pass as the whole project.

These are supplied check results, not executions of a formatter, linter or type checker. The table is assumed to include every required check for the same code revision.

Continue the courseLogging and Debugging →
← Configuration and Secrets