Loading tutorials
make_user. The chapter is about the values a factory fills in when a test says nothing. Those values decide whether your factory stays pleasant to use or becom6 min readmake_user factory shown below and look at how overrides work and why they make tests readable.6 min readUser, make_user, and the counter-based ids from those chapters.5 min readmake_user and make_order factories from those chapters.5 min readmake_user-style factory functions with keyword overrides. It also assumes you know basic SQL. The database examples use the standard library's sqlite3, so nothing needs installing besides pytest.6 min readpytest or a similar runner. The examples use Python and the factory_boy library, which you can install with `p5 min readmake_user style factory function and with pytest. The examples use Python, and the User and Order dataclasses from earlier chapters live in a m6 min readdataclasses. The ideas apply to7 min read