- We'll be using pytest on the commandline for the training.
- If you use PyCharm:
- Open the
code/
folder as a project - Tell it to install
requirements.txt
- Open a terminal inside PyCharm and make sure things work by running
pytest --version
, you should see 7.4 ideally (7.0+ is ok)
- Open the
- Manual setup:
- Create a virtualenv and activate it (or substitute tool paths below)
pip install -r code/requirements.txt
- Check everything works:
- Check
python3 --version
(Windows:py -3 --version
), make sure you run 3.8 or newer. - Check
pytest --version
, you should see 7.4 ideally (7.0+ is ok)
- Check
- In case of trouble/questions, please feel free to ask! Any of these will work fine:
@thecompiler
on Telegramflorian@bruhin.software
- IRC:
The-Compiler
on Libera Chat @the_compiler
on Discord (e.g. Python Discord or Europython 2023 Discord)@the_compiler
on Twitter
CarMoreno/pytest-ep2023
Supporting material for the "pytest tips and tricks for a better testsuite" workshop at Europython 2023
Python