diff --git a/.gitignore b/.gitignore index d1a92b1..719a800 100644 --- a/.gitignore +++ b/.gitignore @@ -54,3 +54,6 @@ coverage.xml docs/_build/ .idea + +# ingore VSCode settings +.vscode/ \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 index 21e0ca1..0000000 --- a/.vscode/settings.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "python.testing.unittestArgs": [ - "-v", - "-s", - "./tests", - "-p", - "*test*.py" - ], - "python.testing.pytestEnabled": false, - "python.testing.unittestEnabled": true -} \ No newline at end of file diff --git a/tests/forms.py b/tests/forms.py index 5cf3eb6..6610252 100644 --- a/tests/forms.py +++ b/tests/forms.py @@ -16,6 +16,11 @@ class MyForm(Form): with_cls = CharField(widget=TextInput(attrs={"class": "class0"})) date = forms.DateField(widget=SelectDateWidget(attrs={"egg": "spam"})) choice = forms.ChoiceField(choices=[(1, "one"), (2, "two")]) + radio = forms.ChoiceField( + label="Radio Input", + choices=[("option1", "Option 1"), ("option2", "Option 2")], + widget=forms.RadioSelect, + ) def render_form(text, form=None, **context_args):