Quantcast
Channel: User Amir Afianian - Stack Overflow
Viewing all articles
Browse latest Browse all 41

How to mock django settings attributes in pytest-django

$
0
0

When using Django default unittest it's trivial to patch settings attributes (using @override_settings decorator for instance.)

I'd like to override several attributes of my settings for a test method. How can I go about achieving this when I'm using pytest-django?


Viewing all articles
Browse latest Browse all 41

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>