Friday, December 17, 2021

Inspired Python: Five Advanced Pytest Fixture Patterns

Five Advanced Pytest Fixture Patterns

The pytest package is a great test runner, and it comes with a battery of features — among them the fixtures feature. A pytest fixture lets you generate and initialize test data, faked objects, application state, configuration, and much more, with a single decorator and a little ingenuity.

But there’s more to pytest fixtures than meets the eye. Here’s five advanced fixture tips to improve your tests.



Read More ->

from Planet Python
via read more

No comments:

Post a Comment

TestDriven.io: Working with Static and Media Files in Django

This article looks at how to work with static and media files in a Django project, locally and in production. from Planet Python via read...