---
title: "Discussion on \"Why my tests fail only during pre-commit ?\" | Hashnode"
description: "Discussion on \"Why my tests fail only during pre-commit ?\". Symptom\nRecently I ran across (what I thought was) strange behaviour.\nI use pre-commit for all my git commits, and one of the step is to ensure that\nall the unit tests pass.\nI also have a make target to run just the unit tests.\nEach time when I tried..."
url: "https://hashnode.com/posts/why-my-tests-fail-only-during-pre-commit/5f6f6df85fd46b6601bbf868"
---

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

Discussion

# [Why my tests fail only during pre-commit ?](https://mandarvaze.hashnode.dev/why-my-tests-fail-only-during-pre-commit?utm_source=hashnode&utm_medium=feed)

Symptom Recently I ran across (what I thought was) strange behaviour. I use pre-commit for all my git commits, and one of the step is to ensure that all the unit tests pass. I also have a make target to run just the unit tests. Each time when I tried...

Jul 27, 2020 · 2 min read · mandarvaze.hashnode.dev  
Read the article

-   [#python](https://hashnode.com/tag/python)
-   [#pytest](https://hashnode.com/tag/pytest)
-   [#git](https://hashnode.com/tag/git)
-   [#hooks](https://hashnode.com/tag/hooks)

## Written by

[Mandar Vaze](https://hashnode.com/@mandarvaze)

@mandarvaze · India

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

Remote Software Consultant

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
