---
title: "Discussion on \"How to write unit tests using pytest?\" | Hashnode"
description: "Discussion on \"How to write unit tests using pytest?\". Unit test is all about increasing confidence in the code - one good test is better than 10 bad ones."
url: "https://hashnode.com/posts/how-to-write-unit-tests-using-pytest/63788806673c18a86605c996"
---

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

Discussion

# [How to write unit tests using pytest?](https://helloshreyas.com/how-to-write-unit-tests-using-pytest?utm_source=hashnode&utm_medium=feed)

Unit test is all about increasing confidence in the code - one good test is better than 10 bad ones.

Nov 19, 2022 · 6 min read · helloshreyas.com  
Updated Sep 27, 2024  
Read the article

-   [#python](https://hashnode.com/tag/python)
-   [#unit-testing](https://hashnode.com/tag/unit-testing)
-   [#pytest](https://hashnode.com/tag/pytest)
-   [#development](https://hashnode.com/tag/development)
-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)

## Written by

[Shreyas Kulkarni](https://hashnode.com/@shreyaskulkarni)

@shreyaskulkarni · India

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

I build, write, and explore around AI, data, and technology.

I build, write and explore around AI, data, and technology. Sometimes it’s experiments, sometimes it’s just reflections. All of it helps me learn.

## Responses 1

Markdown supported · ⌘↵ to post

[vinod chavankhot](https://hashnode.com/@Vinith641)

[Nov 19, 2022](https://hashnode.com/posts/how-to-write-unit-tests-using-pytest/63788806673c18a86605c996/comment/6378df4ece6f5c939e281956)

This is helpful and very nice article
