pytest.org(@pytestdotorg) 's Twitter Profileg
pytest.org

@pytestdotorg

a full-featured Python testing tool to help you write better programs. /tweets by @the_compiler

ID:3020468877

linkhttp://pytest.org calendar_today05-02-2015 21:03:07

2,2K Tweets

9,1K Followers

61 Following

Florian Bruhin(@the_compiler) 's Twitter Profile Photo

trick: Want to patch a function returning a different value on every call, without full unittest.mock?

values = iter(['eggs', 'bacon', 'spam'])
monkeypatch.setattr(random, 'choice', lambda: next(values))
assert random.choice() == 'eggs'
assert random.choice() == 'bacon'

account_circle
Florian Bruhin(@the_compiler) 's Twitter Profile Photo

Got a lot of great feedback for my advanced training at !

Next:

1 day basics, Sep 5th, @ CH Open Workshoptage, OST – Ostschweizer Fachhochschule in Rapperswil 🇨🇭 (de): workshoptage.ch/workshops/2023…

In-depth: Mar 5-7th 2024, Leipzig 🇩🇪/Remote @
Python Academy (en): python-academy.com/courses/python…

account_circle
Florian Bruhin(@the_compiler) 's Twitter Profile Photo

Oh, looks like JetBrains/Python Software Foundation sneakily released the developers survey 2022 results at some point!

The first thing I look at is always how testing frameworks changed compared to the year before😅 up from 50% → 51%, 'None' down from 38% → 35%. Yay!

Oh, looks like @jetbrains/@ThePSF sneakily released the #Python developers survey 2022 results at some point! The first thing I look at is always how testing frameworks changed compared to the year before😅 #pytest up from 50% → 51%, 'None' down from 38% → 35%. Yay!
account_circle
Florian Bruhin(@the_compiler) 's Twitter Profile Photo

Almost 3 years after -xvfb 2.0.0, I released v3.0.0 today! Other than packaging/formatting/typing/Python version updates, this release hopefully fixes a long-standing 'XIO: fatal IO error 0 (Success)' issue, and adds support for using Xephyr/Xvnc. github.com/The-Compiler/p…

account_circle
Florian Bruhin(@the_compiler) 's Twitter Profile Photo

Blast from the past: My training from 7 years ago (mostly inherited by holger x krekel #blm @[email protected]) vs. now. Currently working on another big 'rewrite', trying to introduce one big case study example (a small RPN calculator) instead of isolated examples for most of the code/exercises.

Blast from the past: My #pytest training from 7 years ago (mostly inherited by @hpk42) vs. now. Currently working on another big 'rewrite', trying to introduce one big case study example (a small RPN calculator) instead of isolated examples for most of the code/exercises.
account_circle
pytest.org(@pytestdotorg) 's Twitter Profile Photo

7.3 was released just at the beginning of the easter weekend, it brings multiple enhancements around tmppath retention and output details, but beware we learned of a windows only perf regression thats now under investigation

account_circle
pytest.org(@pytestdotorg) 's Twitter Profile Photo

-html has a major release (4.0.0) coming in - please try rc4 pypi.org/project/pytest… to help iron out compatibility

account_circle
Florian Bruhin(@the_compiler) 's Twitter Profile Photo

My 3-day in-depth training (remote) will start in a week, and there are still spaces available! python-academy.com/courses/python…

I'm afraid my pytest training for was not accepted, and I won't make it to this year. Planning to propose it for though!

account_circle
Florian Bruhin(@the_compiler) 's Twitter Profile Photo

Update on my in-depth training with Python Academy: We decided to go remote-only as we only had one on-site signup. March 7th to 9th, still spaces available! python-academy.com/courses/python…

My PyConDE & PyData Berlin training is still in review, hoping to share more information there soon too!

account_circle
Florian Bruhin(@the_compiler) 's Twitter Profile Photo

Two weeks until early-bird pricing ends for my training with Python Academy: March 7th to 9th 2023, both on-site in Leipzig 🇩🇪 *and* remote, three days full of knowledge from a pytest core maintainer! python-academy.com/courses/python…

I submitted a (shorter) training to PyConDE & PyData Berlin too!

account_circle
Ronny(@ossronny) 's Twitter Profile Photo

I'm happy to announce the release of 7.2.0

a special perk is dropping the dependency on pylib - the rest is in docs.pytest.org/en/stable/chan…

account_circle
pytest.org(@pytestdotorg) 's Twitter Profile Photo

PSA: users can safely ignore CVE-2022-42969 / github.com/advisories/GHS… in its py dep.

The reported DoS 'vulnerability' is in pylib's 18 year old SVN handling (py.path.svn*), which is not used in pytest, nor anywhere else to our knowledge.

Details: github.com/pytest-dev/py/…

account_circle
Florian Bruhin(@the_compiler) 's Twitter Profile Photo

My next trainings:

1 day workshop at enterPy 2022, Oct 28th (sold out) and Nov 4th (remote, German): enterpy.de/veranstaltung-…

In-depth training Mar 7th-9th with
Python Academy, (Leipzig 🇩🇪 or remote, English): python-academy.com/courses/python…

account_circle
Florian Bruhin(@the_compiler) 's Twitter Profile Photo

Less than a month until my next planned training, September 8th at CH Open Workshoptage (🇨🇭, German): workshoptage.ch/workshops/2022… - unfortunately, only 2 sign-ups so far😢.

Next up: In-depth training Mar 7th-9th with Python Academy, (🇩🇪/remote, English): python-academy.com/courses/python…

account_circle
Florian Bruhin(@the_compiler) 's Twitter Profile Photo

PyConIT is over, and the next few trainings have been accepted!

July 11th at EuroPython 🇮🇪: ep2022.europython.eu/session/pytest…

September 8th at CH Open Workshoptage 🇨🇭 (German): workshoptage.ch/workshops/2022…

In-depth March 7th-9th with Python Academy 🇩🇪/remote: python-academy.com/courses/python…

account_circle
Florian Bruhin(@the_compiler) 's Twitter Profile Photo

Yay, has cracked 50%! So every second developer is now using pytest (2021, up from 49% in 2020). Unfortunately, 38% are not using any test framework at all (up from 37% in 2020)...

Yay, #pytest has cracked 50%! So every second #Python developer is now using pytest (2021, up from 49% in 2020). Unfortunately, 38% are not using any test framework at all (up from 37% in 2020)...
account_circle
Gabriel Fioravante(@gfvantte) 's Twitter Profile Photo

pytest-xprocess 0.19.0 is out! Bringing improvements to how process resources are handled internally and dropping support for python 3.5/3.6. New contributors are always welcome, so feel free to reach out with any questions/suggestions you might have! github.com/pytest-dev/pyt…

account_circle
Florian Bruhin(@the_compiler) 's Twitter Profile Photo

For people planning to come to the tutorial at PyConDE & PyData Berlin, handouts and code are ready now:
t.cmpl.cc/pyconde.pdf
t.cmpl.cc/pyconde.zip

If you could download those and set up pytest before the training, that'd be great. The PDF has some basic instructions.

account_circle
pytest.org(@pytestdotorg) 's Twitter Profile Photo

7.1.1 has been released! This release fixes a regression in pytest 7.1.0 where some conftest.py files outside of the source tree (e.g. in the site-packages directory) were not picked up: github.com/pytest-dev/pyt…

account_circle