Our Complete FastAPI course: https://teclado.com/page/fastapi-101
Full code shown in this video: https://gist.github.com/jslvtr/815035d97f7a02d043a44237999dc27c
What is testing? How can you write tests for your Python apps? In this video, I introduce you to pytest, a straightforward and effecting library for helping you write tests!
🐍 Accompanying blog post: https://blog.teclado.com/pytest-for-beginners/
How to use pyenv to manage Python versions: https://blog.teclado.com/how-to-use-pyenv-manage-python-versions/
Python virtual environments complete guide: https://blog.teclado.com/python-virtual-environments-complete-guide/
Decimal vs. float in Python: https://blog.teclado.com/decimal-vs-float-in-python/
Official pytest documentation: https://docs.pytest.org/en/7.2.x/
00:00 Introduction
00:36 Video starts
01:37 Introduction to pytest
04:35 Skipping and marking tests
07:41 Our upcoming FastAPI course
08:05 Testing classes with pytest
17:54 Testing a class which stores data
21:30 Introduction to pytest fixtures
25:39 What are pytest fixtures?
28:10 Conclusion and further reading
-- Social Links --
✅ Subscribe to the channel: https://www.youtube.com/tecladocode?sub_confirmation=1
✅ Our Discord server: https://discord.gg/78Nvd3p
✅ Instagram: https://instagram.com/tecladocode