Pytest - Test your Python code
In this video we'll look at how you can use Pytest to test the Python code that you write.
👨💻 Looking for a web developer job, visit: www.webdevjobs.io/
👽 Discord - / discord
Timestamps
00:00 - Intro and Installation
01:30 - Code Setup
04:30 - Simple Pytests
11:24 - Testing Raise
14:52 - Fixtures
21:45 - conftest or global fixtures
25:37 - Parameterize
29:36 - Mark Tests
31:30 - Class Based Tests
The finished code can be found here:
👾 - github.com/sixfwa/pytest-tuto...
Docs for Pytest - docs.pytest.org/en/7.1.x/
#pytest #python #testing
Пікірлер: 5
🔴- If you enjoyed this video please leave a like and subscribe!
I have to say thank you for this video because it helped me pass the coding interview for a new job. I had worked with Pytest for four months at my last job but it was trivial assertions. I watched this video to prepare for a timed, Pytest-specific coding exercise and, because of it, I was able to incorporate the raise and parameterize features to impress the reviewers. Thank you once again!
fantastic stuff!
@iamrithmic
Жыл бұрын
Thank you!!
which font you are using for this editor ?