Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing learning outcomes to Testing course #206

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions technology_and_tooling/testing/mocking.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ name: Using Mocks in Tests
id: mocking
dependsOn: [technology_and_tooling.testing.testable_code_fixtures]
tags: [pytest]
learningOutcomes:
- Understand the use cases for mocking objects when writing tests.
- Be able to use `unittest`'s `Mock` class for creating mock objects.
- Understand how to patch functionality of objects within a desired scope.
attribution:
- citation: This course material was developed as part of UNIVERSE-HPC, which is funded through the SPF ExCALIBUR programme under grant number EP/W035731/1
url: https://www.universe-hpc.ac.uk
Expand Down
6 changes: 6 additions & 0 deletions technology_and_tooling/testing/testable_code_fixtures.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ name: Testable Code and Fixtures
id: testable_code_fixtures
dependsOn: [technology_and_tooling.testing.diagnosing_issues]
tags: [pytest]
learningOutcomes:
- Understand how to design and write testable code.
- Understand how grouping tests into classes allows re-use of objects.
- Be aware of `pytest`'s built-in methods for setup and teardown of objects in tests.
- Understand the benefit and use of fixtures in test suites.
- Be able to define fixtures for use in `pytest` test suites.
attribution:
- citation: This course material was developed as part of UNIVERSE-HPC, which is funded through the SPF ExCALIBUR programme under grant number EP/W035731/1
url: https://www.universe-hpc.ac.uk
Expand Down