---
title: "Discussion on \"How to Mock and Contract Test Python Microservices with Microcks Testcontainers — A Complete Guide\" | Hashnode"
description: "Discussion on \"How to Mock and Contract Test Python Microservices with Microcks Testcontainers — A Complete Guide\". Your unittest.mocks are lying to you. Replace them with spec-driven API mocking and contract testing using Microcks Testcontainers for Python"
url: "https://hashnode.com/posts/how-to-mock-and-contract-test-python-microservices-with-microcks-testcontainers-a-complete-guide/69dacf4cc8e5007ddbf591fa"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to Mock and Contract Test Python Microservices with Microcks Testcontainers — A Complete Guide](https://caesarsage.hashnode.dev/how-to-mock-and-contract-test-python-microservices-with-microcks-testcontainers-a-complete-guide?utm_source=hashnode&utm_medium=feed)

Your unittest.mocks are lying to you. Replace them with spec-driven API mocking and contract testing using Microcks Testcontainers for Python

Apr 11 · 19 min read · caesarsage.hashnode.dev  
Read the article

-   [#testing](https://hashnode.com/tag/testing)
-   [#cloud-computing](https://hashnode.com/tag/cloud-computing)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#docker](https://hashnode.com/tag/docker)
-   [#api](https://hashnode.com/tag/api)
-   [#openapi](https://hashnode.com/tag/openapi)
-   [#devops](https://hashnode.com/tag/devops)
-   [#testcontainers](https://hashnode.com/tag/testcontainers)
-   [#flask](https://hashnode.com/tag/flask)
-   [#microservices](https://hashnode.com/tag/microservices)

## Written by

[Destiny Erhabor](https://hashnode.com/@CaesarSage)

@CaesarSage · Nigeria

  
[View profile](https://hashnode.com/@CaesarSage)

Cloud/DevOps Engineer | Software Developer | Technical Writer

Hi. Glad you could check out my profile. I'm Destiny, majorly focused on software development, technical writing, cloud computing, power platform and building tech communities. I have vast and extensive experience on the MERN stack. My experience includes developing scalable and fast applications while still applying and implementing more efficient algorithms with JavaScript and it's various technologies, Python and Databases. I have experience using cloud platforms like Microsoft Azure, Google Cloud Platform, and Amazon Web Services. With about five years of experience working remotely and working in different diverse teams of all sizes, I have contributed to a range of projects or programs of all sizes.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
