Productive pytest with PyCharm

preview_player
Показать описание
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.

This webinar is a follow-on to the introductory Visual Testing with PyCharm Oct 2017 webinar with Kenneth Love.

Brian will show:
* Good style for asserts
* 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.
Рекомендации по теме
Комментарии
Автор

Thank you - so useful! :) parameterize... mind blown... and the auto test run... and a lot of other useful jems! :)

donha
Автор

I'm getting an error when trying to run the hello world test.
Traceback (most recent call last):
File "C:\Program Files\JetBrains\PyCharm Community Edition 2019.2\helpers\pycharm\_jb_pytest_runner.py", line 4, in <module>
import pytest
ModuleNotFoundError: No module named 'pytest'

Process finished with exit code 1

Empty suite

Any suggestions?

AfikAfikAfik
Автор

Noob here, I did not clone the repo and tried to do it by myself with the setup and missed the "from setuptools import setup, find_packages " in the setup.py

An_Otter_Dennis
Автор

How'd he set up the functions on one side of the pane and tests on the other side? @16:04 mark

slymm
Автор

I appreciate Brian's effort but he must improve his live skills, as I believe many people felt lost on several moments during this webinar. I believe the book is much better

rschalch
Автор

You must see this video in 1.5x speed.

vishnuvs
Автор

The interviewer was very disruptive and spoiled the flow of the presenter. The presenter, however, was very knowledgeable.

basabdattaray