summaryrefslogtreecommitdiff
path: root/tests.py
Commit message (Collapse)AuthorAgeFilesLines
* fix invalid remove indexVu-Hoang Phan2021-04-061-0/+6
|
* FIX: TypeError when one forgot to put its operation in a list.Julien Palard2021-03-211-0/+6
|
* closes #129Bock2021-03-111-0/+9
|
* Fix make_patchRyan Marvin2021-02-011-0/+55
|
* test: fixArtyom Nikitin2020-11-241-2/+4
|
* test: custom operationsArtyom Nikitin2020-11-231-0/+26
|
* Merge branch 'master' into feature/custom-pointerArtyom Nikitin2020-11-231-1/+141
|\ | | | | | | | | | | # Conflicts: # jsonpatch.py # tests.py
| * Merge pull request #116 from dave-shawley/validate-patch-docStefan Kögl2020-11-201-0/+81
| |\ | | | | | | Fix #110 - validate patch document during creation
| | * Add tests for operation doc structure.Dave Shawley2020-11-171-0/+64
| | |
| | * fix #110: Validate patch documents during creation.Dave Shawley2020-11-171-0/+17
| | |
| * | Merge pull request #108 from paperlessreceipts/custom-typesStefan Kögl2020-11-201-0/+58
| |\ \ | | |/ | |/| Make it possible for from_diff to support custom types (issue #107)
| | * Subclassing can override json dumper and loaderChristian Lyder Jacobsen2020-03-061-8/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | Additionally: * from_string gets a loads parameter * to_string gets a dumps_parameter * documentation added * added more tests
| | * Make it possible for from_diff to support custom types (issue #107)Christian Lyder Jacobsen2020-01-311-0/+15
| | |
* | | tests: moarArtyom Nikitin2020-11-171-0/+38
| | |
* | | style: fix typoArtyom Nikitin2020-11-171-1/+1
| | |
* | | test: fix for py27Artyom Nikitin2020-11-171-24/+26
| | |
* | | test: add toy jsonpointer exampleArtyom Nikitin2020-11-171-0/+11
| | |
* | | test: updateArtyom Nikitin2020-11-161-0/+2
| | |
* | | test: add more testsArtyom Nikitin2020-11-151-0/+22
| | |
* | | test: custo json pointerArtyom Nikitin2020-11-131-0/+54
|/ /
* | fix #111: optimizing exception messageAlanscut2020-05-231-0/+11
|/
* Merge pull request #106 from blakehilliard/only-type-diffStefan Kögl2020-01-291-0/+18
|\ | | | | Fix issue not recognizing that, in JSON, 1 != 1.0 != True
| * Test to reproduce:Jonathan Hilliard2020-01-281-0/+18
| | | | | | | | | | https://github.com/stefankoegl/python-json-patch/issues/90 https://github.com/stefankoegl/python-json-patch/issues/103
* | Merge pull request #96 from gdraynz/replace-array-indexerrorStefan Kögl2020-01-281-0/+5
|\ \ | |/ |/| Ensure an item is within the upper array boundaries before replacing it
| * Ensure an item is within the upper array boundaries before replacing itGuillaume Desvé2019-05-161-0/+5
| |
* | Fix move for numeric dictionary keys (issue #97)Igor Tkach2019-06-281-0/+9
|/
* Merge pull request #75 from stefankoegl/jsonptrStefan Kögl2018-04-021-0/+22
|\ | | | | Expect path/from attributes also as JsonPoiner instances (#60)
| * Expect path/from attributes also as JsonPoiner instances (#60)jsonptrStefan Kögl2017-12-031-0/+22
| |
* | Remove ununsed imports and variablesHugo2018-01-161-1/+1
| |
* | Remove extraneous 'value' field for op:remove (#76)Brian Rosmaita2017-12-041-2/+16
|/ | | | | | | | | | | | RFC 6902 section 4.2 [0] does not define a 'value' field for the 'remove' operation. The commit "Merge _op_base classes into PatchOperation classes" [1] introduced a 'value' field in _item_removed() in the DiffBuilder class. This patch removes the 'value' field from the 'remove' operation, adds a new test, and revises some other tests. [0] https://tools.ietf.org/html/rfc6902#section-4.2 [1] https://github.com/stefankoegl/python-json-patch/commit/03aa14e8209d59522476726d55bfabf86a28929e
* 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
| |