We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9bb312 commit 6e00fefCopy full SHA for 6e00fef
tests/test_context_processors.py
@@ -0,0 +1,11 @@
1
+from django.conf import settings
2
+
3
+import readonly.context_processors
4
5
6
+def test_context_processor():
7
+ request = {}
8
+ context = readonly.context_processors.readonly(request)
9
+ assert "SITE_READ_ONLY" in context
10
+ assert context["SITE_READ_ONLY"] == settings.SITE_READ_ONLY
11
0 commit comments