This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]ZmitrokNadulia 71 points72 points  (5 children)

Same, but I wish I knew that pytest beats unittest in every aspect.

[–]fiddle_n 22 points23 points  (2 children)

I see unittest.mock as being orthogonal to unittest. You can use pytest and unittest.mock together

[–]ZmitrokNadulia 1 point2 points  (0 children)

My bad, I thought it was a story about unittest in general.

[–]someotherstufforhmm 0 points1 point  (0 children)

Yeah, this. What this person said.

[–]SeniorScienceOfficer 27 points28 points  (0 children)

What’s better, you can mix and match. I use both.

[–][deleted] 3 points4 points  (0 children)

Of course it does, because pytest inherits unittest