Posts Categorized Under

Testing

  1. Revisiting Unit Testing and Mocking in Python

    Mike Lin
    Mike Lin

    Senior Software Engineer

    As a follow up to Python Mocking 101: Fake It Before You Make It, this post covers some higher-level software engineering principles demonstrated in our Python testing over the past year and half. In particular, the idea of patching mock objects in unit tests is revisited and explored in greater depth.

  2. Python Mocking 101: Fake It Before You Make It

    Mike Lin
    Mike Lin

    Senior Software Engineer

    In Python, mocking is accomplished through the unittest.mock module. The module contains a number of useful classes and functions, the most important of which are the patch function (as decorator and context manager) and the MagicMock class. Mocking in Python is largely accomplished through the use of these two powerful components.

Take Control of Your Cloud Today

You and your team can be productive with Fugue on AWS in less than an hour, without the need for professional services.