{"id":1222012,"date":"2025-02-21T13:18:26","date_gmt":"2025-02-21T18:18:26","guid":{"rendered":"https:\/\/www.prime-wow.com\/?p=1222012"},"modified":"2025-02-21T13:18:26","modified_gmt":"2025-02-21T18:18:26","slug":"multi-host-testing-with-the-pytest-mh-framework","status":"publish","type":"post","link":"https:\/\/www.prime-wow.com\/?p=1222012","title":{"rendered":"[$] Multi-host testing with the pytest-mh framework"},"content":{"rendered":"<div>\n<p>The <a href=\"https:\/\/pytest-mh.readthedocs.io\/en\/latest\/\"><tt>pytest-mh<\/tt><\/a><br \/>\nproject is a plugin that provides a multi-host test framework for the<br \/>\npopular <a href=\"https:\/\/pypi.org\/project\/pytest\/\"><tt>pytest<\/tt><\/a><br \/>\nunit-testing framework and test runner. Work on <tt>pytest-mh<\/tt><br \/>\nstarted in 2023 to solve a multitude of issues that<br \/>\ncropped up for developers and testers when testing the <a href=\"https:\/\/sssd.io\/\">SSSD<\/a> project, which is a client for<br \/>\nenterprise identity management. I was not happy with the state of<br \/>\ntesting of the SSSD project and wanted to create something that would<br \/>\nincrease test readability, remove duplication, eliminate errors, and<br \/>\nprovide multi-host testing capabilities, while having the flexibility<br \/>\nto build a new API around it. Finally, I also wanted something that<br \/>\ncan be used by anyone to test their projects as well.<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>The pytest-mh project is a plugin that provides a multi-host test framework for the popular pytest unit-testing framework and test runner. Work on pytest-mh started in 2023 to solve a multitude of issues that cropped up for developers and testers &hellip; <a href=\"https:\/\/www.prime-wow.com\/?p=1222012\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[72,116,110],"tags":[],"class_list":["post-1222012","post","type-post","status-publish","format-standard","hentry","category-linux","category-lwn-net","category-unfiltered-rss"],"_links":{"self":[{"href":"https:\/\/www.prime-wow.com\/index.php?rest_route=\/wp\/v2\/posts\/1222012","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.prime-wow.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.prime-wow.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.prime-wow.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.prime-wow.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1222012"}],"version-history":[{"count":0,"href":"https:\/\/www.prime-wow.com\/index.php?rest_route=\/wp\/v2\/posts\/1222012\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.prime-wow.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1222012"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.prime-wow.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1222012"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.prime-wow.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1222012"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}