Skip to content

Update pytest output in Interacting with Tests#14

Merged
LiamPattinson merged 1 commit into
mainfrom
update_pytest_output
Feb 16, 2026
Merged

Update pytest output in Interacting with Tests#14
LiamPattinson merged 1 commit into
mainfrom
update_pytest_output

Conversation

@LiamPattinson
Copy link
Copy Markdown
Collaborator

Resolves #3

Updates the output in the 'Interacting with Tests' lesson to something more likely to occur on a learner's laptop.

Fixes inconsistency in which students are instructed to edit test_calculator.py, but the following text assumed they altered calculator.py.

Adds a couple more useful pytest flags, simplifies key points at the end.

@github-actions
Copy link
Copy Markdown

ghost commented Feb 16, 2026

Thank you!

Thank you for your pull request 😃

🤖 This automated message can help you check the rendered files in your submission for clarity. If you have any questions, please feel free to open an issue in {sandpaper}.

If you have files that automatically render output (e.g. R Markdown), then you should check for the following:

  • 🎯 correct output
  • 🖼️ correct figures
  • ❓ new warnings
  • ‼️ new errors

Rendered Changes

🔍 Inspect the changes: https://github.com/ResearchCodingClub/python-testing-for-research/compare/md-outputs..md-outputs-PR-14

The following changes were observed in the rendered markdown documents:

 03-interacting-with-tests.md                       | 61 ++++++++++++----------
 .../advanced/advanced_calculator.py (new)          |  6 +++
 .../advanced/test_advanced_calculator.py (new)     |  7 +++
 .../03-interacting-with-tests/calculator.py (new)  |  8 +++
 .../test_calculator.py (new)                       | 23 ++++++++
 md5sum.txt                                         |  2 +-
 6 files changed, 77 insertions(+), 30 deletions(-)
What does this mean?

If you have source files that require output and figures to be generated (e.g. R Markdown), then it is important to make sure the generated figures and output are reproducible.

This output provides a way for you to inspect the output in a diff-friendly manner so that it's easy to see the changes that occur due to new software versions or randomisation.

⏱️ Updated at 2026-02-16 19:34:16 +0000

@LiamPattinson LiamPattinson merged commit 84345ba into main Feb 16, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Simplify lesson 4

1 participant