--- title: 'Create helper functions for creating models in tests using factories' tweet_id: 1425833852480626694 thread_slug: pest-tips author_username: archtechx images: - https://pbs.twimg.com/media/E8mO3a5VEAAsjr1.jpg created_at: 2021-08-16T19:09:22+02:00 slug: create-helper-functions-for-creating-models-in-tests-using-factories --- For example: - invoice() to create an Invoice model - product() to create a Product model