diff options
author | 2019-04-20 15:08:16 +0100 | |
---|---|---|
committer | 2019-04-20 15:08:16 +0100 | |
commit | 383b3fd568b4b7ce0368e85854172e6f49860c15 (patch) | |
tree | d96ec255fdce3fef0f64bf1193081d9ba3d8d13b /pydis_site/apps/home | |
parent | Styling fixes and cleanup (diff) |
100% coverage
Diffstat (limited to 'pydis_site/apps/home')
-rw-r--r-- | pydis_site/apps/home/tests/test_wiki_templatetags.py | 7 |
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) |