<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Python on Mark Kikta</title><link>https://mkikta.com/tags/python/</link><description>Recent content in Python on Mark Kikta</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Sat, 18 Jul 2026 00:00:00 -0400</lastBuildDate><atom:link href="https://mkikta.com/tags/python/index.xml" rel="self" type="application/rss+xml"/><item><title>Testing in Python</title><link>https://mkikta.com/posts/tests/</link><pubDate>Sat, 18 Jul 2026 00:00:00 -0400</pubDate><guid>https://mkikta.com/posts/tests/</guid><description>&lt;h2 id="introduction"&gt;
 Introduction
&lt;/h2&gt;
&lt;p&gt;This article assumes the reader already understands why testing is important and wants to write tests for a Python web application. It begins with an overview of the testing pyramid before introducing &lt;a href="https://docs.pytest.org/en/stable/"&gt;pytest&lt;/a&gt;, several useful pytest plugins, and &lt;a href="https://testcontainers.com"&gt;Testcontainers&lt;/a&gt;, illustrating how these tools fit together to build an effective testing strategy.&lt;/p&gt;


&lt;h2 id="the-testing-pyramid"&gt;
 The Testing Pyramid
&lt;/h2&gt;
&lt;p&gt;There are three primary categories of tests: unit tests, integration tests, and end-to-end tests. Unit tests should be the most numerous, followed by fewer integration tests, then even fewer end-to-end tests, thus making a &lt;strong&gt;testing pyramid:&lt;/strong&gt;&lt;/p&gt;</description></item></channel></rss>