summaryrefslogtreecommitdiff
path: root/testdata.json
Commit message (Collapse)AuthorAgeFilesLines
* let acceptable types specify their quality (#26)Stefan Wójcik2016-10-161-0/+16
|
* more readable formatting of test dataStefan Wojcik2016-10-161-7/+28
|
* extra test based on RFC 7231 page 38Stefan Wojcik2016-09-281-0/+8
|
* cleaner code for quality_and_fitness_parsedStefan Wojcik2016-09-281-1/+1
|
* more readable testdata.jsonStefan Wojcik2016-09-281-46/+184
|
* Handle q parameter name case insensitivelyVille Skyttä2016-05-021-0/+1
| | | | https://tools.ietf.org/html/rfc7231#section-5.3.1
* Handle non-numeric q value gracefullyVille Skyttä2016-05-021-0/+1
|
* Add test case for negative q valueVille Skyttä2016-05-021-0/+1
|
* Use cgi.parse_header for main type parsingVille Skyttä2016-04-281-0/+1
| | | | Adds support for quoted string parameter values.
* make sure mimeparse gracefully handles an invalid mime type of the form ↵Stefan Wójcik2016-04-201-1/+2
| | | | "text/extra/part" (#14)
* raise an exception when the header cannot be parsed + better handling of ↵Stefan Wojcik2016-01-261-2/+4
| | | | unit tests
* Fixed Wrong ordering of candidatesD.B. Tsai2012-08-271-0/+1
| | | | | | | | | See https://github.com/dbtsai/python-mimeparse/issues/3 mimeparse.best_match(["image/jpeg", "text/plain"], "text/*;q=0.3, text/html;q=0.7, text/html;level=1, text/html;level=2;q=0.4, */*;q=0.5") Expected: 'image/jpeg' Instead: 'text/plain'
* Remove the tab in testdata.jsonD.B. Tsai2012-08-271-30/+30
|
* Fixed that parse_media_range overrides quality values of 0D.B. Tsai2012-08-271-0/+1
| | | | https://github.com/dbtsai/python-mimeparse/issues/1
* Fixed formatting of Python code.Joe Gregorio2012-08-221-3/+4
|
* Respect order of supported in the event of a tie.Ed Summers2012-08-221-2/+4
|
* Added tests for parse_mime_type. One came from the docstring for the PythonAde Oshineye2012-08-221-0/+5
| | | | | function. The other came from the test for the Go function. Updated the README file to describe the structure of the test data.
* Added the first set of language independent tests and a Python implementation.Ade Oshineye2012-08-221-0/+34
The current tests are just a port of the existing Python tests but I plan to add more.