Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/validators
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #25635 -- Made URLValidator allow '+' in scheme.Dheerendra Rathor2015-10-311-1/+2
|
* Fixed #25620 -- Made URLValidator prohibit URLs with ↵Dheerendra Rathor2015-10-291-0/+1
| | | | consecutive dots in the domain section.
* Fixed #24636 -- Added model field validation for decimal ↵Iulia Chiriac2015-09-181-5/+24
| | | | places and max digits.
* Refs #25345 -- Updated links to code.google.com.Maxime Lorant2015-09-041-1/+1
|
* Fixed #16501 -- Added an allow_unicode parameter to ↵Edward Henderson2015-07-171-1/+22
| | | | | | SlugField. Thanks Flavio Curella and Berker Peksag for the initial patch.
* Fixed catastrophic backtracking in URLValidator.Shai Berger2015-07-083-0/+6
| | | | | | | Thanks João Silva for reporting the problem and Tim Graham for finding the problematic RE and for review. This is a security fix; disclosure to follow shortly.
* Prevented newlines from being accepted in some validators.Tim Graham2015-07-081-1/+14
| | | | | | This is a security fix; disclosure to follow shortly. Thanks to Sjoerd Job Postmus for the report and draft patch.
* Fixed #25059 -- Allowed Punycode TLDs in URLValidatorAlexey Sveshnikov2015-07-062-0/+2
|
* Fixed #24349 -- Limited domain name labels to 63 ↵Anoop Thomas Mathew2015-04-181-3/+8
| | | | characters in EmailValidator
* Fixed #24531 -- Improved CommaSeparatedIntegerField ↵Bertrand Bordage2015-03-251-4/+15
| | | | | | | validation. `','`, `'1,,1'`, `',1'` etc. are no longer considered as valid comma-separated integer lists.
* Sorted imports with isort; refs #23860.Tim Graham2015-02-061-3/+2
|
* Fixed #20003 -- Improved and extended URLValidatorDanilo Bargen2015-01-062-0/+83
| | | | | | | | | | | | | This adds support for authentication data (`user:password`) in URLs, IPv6 addresses, and unicode domains. The test suite has been improved by adding test URLs from http://mathiasbynens.be/demo/url-regex (with a few adjustments, like allowing local and reserved IPs). The previous URL validation regex failed this test suite on 13 occasions, the validator was updated based on https://gist.github.com/dperini/729294.
* Refactored URLValidator tests by moving URLs to text files.Danilo Bargen2014-11-033-30/+46
|
* Fixed #16617 -- Added 'value' to BaseValidator params.Anubhav Joshi2014-07-261-1/+7
| | | | | | Also allowed overriding the default messages in subclasses of BaseValidator. Thanks sperrygrove for initial patch.
* Corrected domain max length for EmailValidator; refs #20631.Tim Graham2014-07-051-3/+3
| | | | Thanks MarkusH for the report.
* Fixed #20631 -- Increased the default EmailField ↵Tim Graham2014-07-041-0/+3
| | | | | | max_length to 254. Thanks pmartin for the report.
* Fixed #22579 -- Corrected validation for email to reject ↵Erik Romijn2014-05-161-0/+2
| | | | | | | trailing slash Thanks to Claude Paroz for the report and patch and Tomasz Paczkowski for the review.
* Fixed #22588 -- Fix RegexValidator __eq__David Szotten2014-05-091-0/+27
| | | | | | Compare parameters instead of re.pattern instances, and add the other parameters to the comparison. Also add a __ne__ to make assertNotEqual work properly.
* Fix many many typos in comments throughout the codebaseAlex Gaynor2014-04-261-1/+1
|
* Fixed #22255 -- Added support for specifying re flags in ↵Dejan Noveski2014-03-211-0/+12
| | | | RegexValidator
* Fixed #22123 -- EmailValidator now also accepts IPv6 ↵Erik Romijn2014-02-221-0/+7
| | | | literals in addresses
* Fixed #20784 -- Added inverse_match parameter to ↵Si Feng2014-02-101-0/+4
| | | | RegexValidator.
* Fixed #21638: Validators are now comparable, stops ↵Andrew Godwin2014-01-191-0/+56
| | | | infinite user mig'ns
* Fixed #21242 -- Allowed more IANA schemes in URLValidatorClaude Paroz2013-12-281-0/+7
| | | | | Thanks Sascha Peilicke for the report and initial patch, and Tim Graham for the review.
* Removed superfluous models.py files.Aymeric Augustin2013-12-171-0/+0
| | | | | | | Added comments in the three empty models.py files that are still needed. Adjusted the test runner to add applications corresponding to test labels to INSTALLED_APPS even when they don't have a models module.
* Fixing E302 ErrorsJason Myers2013-11-031-4/+6
| | | | Signed-off-by: Jason Myers <jason@jasonamyers.com>
* Fixed #12027 -- Fixed EmailValidator to reject a ↵Tim Graham2013-10-231-0/+1
| | | | | | trailing dot. Thanks Klas H for the report and claudep for the patch.
* Fixed #21298 -- Fixed E301 pep8 warningsAlasdair Nicol2013-10-231-0/+2
|
* Removed import * in tests.Tim Graham2013-10-221-1/+7
| | | | Thanks to flake8 path/to/file.py | awk -F ' ' '{ print $5 }' | sort | uniq
* Fixed errors in 848101bf1736d1c01eb86968e85a14c7466bb376Tim Graham2013-10-111-3/+3
|
* Added tests for URLValidator schemes.Sascha Peilicke2013-10-111-0/+3
|
* Fixed an email validation regressionClaude Paroz2013-07-211-0/+1
| | | | Thanks Vincent Wagelaar for the report.
* Stopped using django.utils.unittest in the test suite.Aymeric Augustin2013-07-011-2/+2
| | | | Refs #20680.
* Fixed #20199 -- Allow ModelForm fields to override ↵Loic Bistuer2013-06-181-2/+2
| | | | error_messages from model fields
* Refactored ValidationError to allow persisting error ↵Loic Bistuer2013-06-181-1/+1
| | | | params and error codes as the exception bubbles up
* Merged regressiontests and modeltests into the test root.Florian Apolloner2013-02-263-0/+224