summaryrefslogtreecommitdiff
path: root/tests.py
Commit message (Collapse)AuthorAgeFilesLines
* Expect path/from attributes also as JsonPoiner instances (#60)jsonptrStefan Kögl2017-12-031-0/+22
|
* Add test case for issue reported in #41Stefan Kögl2017-11-251-0/+10
|
* Add test case for issue reported in #74Stefan Kögl2017-11-251-0/+11
|
* Improve optimizationsStefan Kögl2017-09-101-4/+11
|
* Re-enable previously disabled optimization testsStefan Kögl2017-09-101-6/+2
|
* Remove trailing whitespaceStefan Kögl2017-09-101-1/+1
|
* Merge pull request #65 from thunderstruck47/masterStefan Kögl2017-09-101-1/+9
|\ | | | | fixing array diff bug (issue #30)
| * added a test case for issue #30thunderstruck472017-07-261-1/+9
| |
* | Disable tests for disabled optimizationsStefan Kögl2017-09-031-2/+6
| |
* | Merge branch 'list_tests@v1.13' into list_testsStefan Kögl2017-09-031-7/+48
|\ \ | |/ |/| | | https://github.com/selurvedu/python-json-patch
| * Merge branch 'list_tests@v1.9' into list_tests@v1.13selurvedu2016-04-081-7/+48
| |\ | | | | | | | | | | | | Conflicts: tests.py
| | * Move list-related testcases into separate classselurvedu2016-04-081-0/+4
| | |
| | * Update tests from ea80865 to run on Python 3.2selurvedu2016-04-081-8/+8
| | |
| | * added error-prone cases to default testsStas Erema2016-04-081-0/+32
| | |
| | * Allow longer patches in test_use_move_...selurvedu2016-04-081-2/+3
| | |
| | * Extend tests that check list patchingselurvedu2016-04-081-7/+11
| | |
* | | don't apply patch optimization when it's incorrectKostya2017-04-271-2/+11
| | |
* | | Fix: python 3.2 testskostya2017-03-081-1/+1
| | |
* | | Fix: optimization bugs #55, #54, add more testskostya2017-03-081-23/+87
| | |
* | | Fix KeyError in add/remove optimizationKirill Goldshtein2016-05-041-0/+9
|/ /
* | Remove import of ``pudb``Stefan Kögl2016-02-131-2/+0
| |
* | Optimize "deep" ``replace`` operation, fixes #36Stefan Kögl2016-02-131-0/+18
| |
* | Add failing test for #40Stefan Kögl2015-11-031-0/+7
| |
* | Allow running certain tests separatelyselurvedu2015-10-241-19/+19
| | | | | | | | | | E.g. `python2 -m unittest tests.MakePatchTestCase.test_objects` or `nose tests:MakePatchTestCase.test_objects`.
* | Fix tests for Python 3.2v1.19v1.10Stefan Kögl2015-05-071-1/+1
| |
* | Fix make_patch with unicode pathsStefan Kögl2015-05-071-0/+8
|/
* raise JsonPatchException on missing patch attributesStefan Kögl2014-07-031-1/+3
|
* Fix make_patch() when root is an array (fixes #28)Stefan Kögl2014-06-241-0/+8
|
* fix test for Python 3Stefan Kögl2014-03-221-1/+1
|
* fix make_patch where obj keys contain "/", fixes #26Stefan Kögl2014-03-221-0/+7
|
* Optimize jsonpatch.make_patch for lists. Fixes #24Alexander Shorin2014-03-221-0/+37
| | | | | | | | | This optimization tries to work only with really different lists subsequences and trying to preserve as much as possible common ones. This reduces overall of generated operations since now it's possible to simple insertions. Also, it converts pairs of remove-add operations into single replace (if target path is the same) or move (if target value is the same).
* Catch KeyError when accessing the sub-doc itemsLucas Alvares Gomes2014-02-031-0/+17
|
* allow moving array items into other items in same arrayJohan Forsberg2014-01-111-0/+6
|
* add test for replacing missing objStefan Kögl2013-07-121-0/+6
|
* test for repace outside of listStefan Kögl2013-07-121-1/+4
|
* add test for replaceing whole document by "add"Stefan Kögl2013-07-121-0/+6
|
* add various testsStefan Kögl2013-07-121-0/+32
|
* test equality of patch operations to other objsStefan Kögl2013-07-121-0/+6
|
* test some invalid inputsStefan Kögl2013-07-111-0/+17
|
* test __str__() and to_string()Stefan Kögl2013-07-111-0/+7
|
* add test for comparing patches to other typesStefan Kögl2013-07-091-0/+7
|
* rework coverage calculation for coveralls.ioStefan Kögl2013-07-081-23/+0
|
* Fixed replacing whole documentWilliam Kral2013-06-231-0/+5
| | | | | | | | - json pointer to_last operation returns None for the part in the case that it is a whole document pointer - json patch now checks to see if the part is None and simply returns the value to replace the document - Added a test to verify the fix
* use unicode literals and update testsStefan Kögl2013-04-131-0/+2
|
* add missing assert in test_append()Stefan Kögl2012-12-171-0/+1
|
* fix incorrect JsonPatch.__hash__(), fixes #11Stefan Kögl2012-12-141-7/+19
|
* add coverage to testsStefan Kögl2012-11-151-3/+42
|
* use jsonpointer, update to current spec draftStefan Kögl2012-11-151-0/+14
|
* implement __has__, __eq__ for JsonPatch, PatchOperationStefan Kögl2012-09-281-0/+16
|
* use new (more verbose) syntax from spec draft 5Stefan Kögl2012-09-281-23/+23
|