23-02-2022
41 words
1
minute
Topic
Python Mocking
create and use a mocked class within a python test file
Mutation Testing
manipulating the code to ensure the test runs across varying state & circumstance
Integration Testing
Check that expected behaviour includes all integrated components / suites
Python unittest
from unittest.mock import Mock
fake_diary = Mock()
fake_diary.read = Mock(return_value = "SECRET CONTENTS")