Productive pytest with PyCharm

Testing is a major part of Python development and pytest has become the leading testing framework. Brian Okken, author of the recent book Python Testing with pytest and host of the Test and Code podcast, helps you “level up” your pytest skill.

View at original site


Guest: Brian Okken

Brian is also the author of Python Testing with pytest and has recently launched his new pytest course. Mostly, he spends his free time telling people they should write good, clean automated tests, specifically using pytest.

Brian shows:

  • Good style for asserts
  • Refactoring verbose tests into fixtures and conftest.py files
  • Refactoring fixtures
  • Using parameterize to repeat similar tests
  • Other uses of markers
  • Coverage
  • Good TDD style

Along the way, Brian will use the productive PyCharm testing features from the first webinar.

Related Resources

pytest vs Unittest, Which is Better?
Python, being a versatile and widely used programming language, offers several testing frameworks to facilitate the testing process. Two prominent choices are pytest and unittest, both of which come with their own sets of features and advantages.
Do you do enough testing? pytest to the rescue!
Join us to learn how you can use pytest to find bugs, improve code quality, and even have some fun along the way.
Three pytest features you will love
One of the most popular frameworks for Python is pytest, and it comes with several cool features. I’m going to show you three of them in this blog post.