RSSAmplifier

Blogs on FlowFX · Dec 12, 2017

Speeding up Django unit tests with SQLite, reuse-db and RAMDisk

0
Sign in to vote or save

This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.

Recently, Harry wrote a post about how to speed up Django unit-testing by using a persistent in-memory SQLite database. While Harry uses the default Django testrunner and a Linux machine, I use pytest with pytest-django on a Mac. This changes a few things, and this post will show the differences. So it’s very specific to: Django pytest macOS Create and mount the RAMDisk /dev/shm is a Linux…

Read on flowfx.de

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.