Simon Willison’s Weblog

Subscribe

Wednesday, 1st February 2023

pyfakefs usage (via) New to me pytest fixture library that provides a really easy way to mock Python’s filesystem functions—open(), os.path.listdir() and so on—so a test can run against a fake set of files. This looks incredibly useful.

# 10:37 pm / lukeplant, testing, python, pytest

Python’s “Disappointing” Superpowers. Luke Plant provides a fascinating detailed list of Python libraries that use dynamic meta-programming tricks in interesting ways—including SQLAlchemy, Django, Werkzeug, pytest and more.

# 10:41 pm / lukeplant, python

2023 » February

MTWTFSS
  12345
6789101112
13141516171819
20212223242526
2728