aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Gareth Coles <[email protected]>2019-04-20 15:08:16 +0100
committerGravatar Gareth Coles <[email protected]>2019-04-20 15:08:16 +0100
commit383b3fd568b4b7ce0368e85854172e6f49860c15 (patch)
treed96ec255fdce3fef0f64bf1193081d9ba3d8d13b
parentStyling fixes and cleanup (diff)
100% coverage
-rw-r--r--pydis_site/apps/home/tests/test_wiki_templatetags.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/pydis_site/apps/home/tests/test_wiki_templatetags.py b/pydis_site/apps/home/tests/test_wiki_templatetags.py
index 201d3df4..e1e2a02c 100644
--- a/pydis_site/apps/home/tests/test_wiki_templatetags.py
+++ b/pydis_site/apps/home/tests/test_wiki_templatetags.py
@@ -229,3 +229,10 @@ class TestGetFieldOptions(TestCase):
context = Context({"field": field})
self.TEMPLATE.render(context)
+
+ def test_get_field_options_value(self):
+ unbound_field = ChoiceField()
+ field = BoundField(Form(initial={"field": "Value"}), unbound_field, "field")
+
+ context = Context({"field": field})
+ self.TEMPLATE.render(context)