Step 2 - Pytest tutorial: Project Setup

preview_player
Показать описание

Make a PyCharm project and virtual environment with dependencies, then configure PyCharm to use pytest.

00:00 - Start
00:09 - Create a project using PyCharm's "New Project"
01:18 - pip install an editable project with pytest dependency
01:44 - Set pytest as the default test runner
02:00 - Make a directory for the tests

Links:
Рекомендации по теме
Комментарии
Автор

When using zsh instead of something like bash, the command should look like 'pip install -e ".[tests]"'. If it is not quoted, zsh will complain no matches are found.

KateGrayCode
Автор

Why did you put the ``setup.py`` file and the ``tests`` directory inside the ``src``?

aplatkouski
Автор

But how do you set up the run configurations?

robertkelleher
visit shbcf.ru