Giter Site home page Giter Site logo

proprefenetre / pytest-tips-and-tricks Goto Github PK

View Code? Open in Web Editor NEW

This project forked from the-compiler/pytest-tips-and-tricks

0.0 0.0 0.0 5.84 MB

Supporting material for the "pytest tips and tricks for a better testsuite" workshop at Europython 2023

Python 100.00%

pytest-tips-and-tricks's Introduction

pytest tips and tricks for a better testsuite

Note

The code in code/ is still WIP until Monday ~noon, unfortunately a few minor last-minute changes are expected. Slides will be added around that time as well.

The provided code is for 3 days of training, so we're not going to use all of it. If you want to prepare, take a look at rpncalc/ (especially rpn_v2.py and utils.py), which is a small example project we'll use in the training.

Setup instructions

  • 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 8.1.x ideally (7.0+ is ok)
  • 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)
  • In case of trouble/questions, please feel free to ask! Any of these will work fine:

pytest-tips-and-tricks's People

Contributors

the-compiler avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.