Skip to content

Add basic testing intro - #24

Merged
jackdfranklin merged 5 commits into
bas-training-2026from
19-add-basic-testing-intro
Nov 6, 2026
Merged

jackdfranklin merged 5 commits into
bas-training-2026from
19-add-basic-testing-intro

Conversation

@jackdfranklin

@jackdfranklin jackdfranklin commented Nov 4, 2026 •

Copy link
Copy Markdown
Collaborator

This PR aims to resolve #19.

Tasks

  • Add test exercises
  • Create slides on using pytest

Description

  • Added two new files 'climate_model.py' and 'plot4.py' which implement and use the 0D energy balance model
    • This adds functions that can be tested less trivially
  • Added slides to introduce pytest as a testing framework, go through basic usage and test implementation
  • Added exercises for the testing section

@jackdfranklin
jackdfranklin marked this pull request as ready for review November 6, 2026 10:01
@jackdfranklin
jackdfranklin changed the base branch from main to bas-training-2026 November 6, 2026 10:03
@jackdfranklin
jackdfranklin force-pushed the 19-add-basic-testing-intro branch from 58ba2c0 to dbce4fe Compare November 6, 2026 10:10

@MarionBWeinzierl MarionBWeinzierl left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good. I like that you show how it works at hands of an example.

@jackdfranklin
jackdfranklin merged commit e232abf into bas-training-2026 Nov 6, 2026
@jackdfranklin
jackdfranklin deleted the 19-add-basic-testing-intro branch November 6, 2026 10:47
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.

Add basic intro to testing

2 participants