mirror of
https://github.com/django/django.git
synced 2025-01-01 14:06:06 +00:00
17 lines
519 B
Python
17 lines
519 B
Python
from django.forms.widgets import NumberInput
|
|
from django.test import override_settings
|
|
|
|
from .base import WidgetTest
|
|
|
|
|
|
class NumberInputTests(WidgetTest):
|
|
@override_settings(USE_THOUSAND_SEPARATOR=True)
|
|
def test_attrs_not_localized(self):
|
|
widget = NumberInput(attrs={"max": 12345, "min": 1234, "step": 9999})
|
|
self.check_html(
|
|
widget,
|
|
"name",
|
|
"value",
|
|
'<input type="number" name="name" value="value" max="12345" min="1234" step="9999">',
|
|
)
|