jsonpatch 1.33__tar.gz → 1.34__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {jsonpatch-1.33/jsonpatch.egg-info → jsonpatch-1.34}/PKG-INFO +30 -9
- {jsonpatch-1.33 → jsonpatch-1.34}/README.md +11 -0
- {jsonpatch-1.33 → jsonpatch-1.34}/bin/jsondiff +0 -2
- {jsonpatch-1.33 → jsonpatch-1.34}/ext_tests.py +2 -2
- {jsonpatch-1.33 → jsonpatch-1.34/jsonpatch.egg-info}/PKG-INFO +30 -9
- {jsonpatch-1.33 → jsonpatch-1.34}/jsonpatch.egg-info/SOURCES.txt +0 -1
- {jsonpatch-1.33 → jsonpatch-1.34}/jsonpatch.py +240 -202
- {jsonpatch-1.33 → jsonpatch-1.34}/setup.cfg +0 -3
- {jsonpatch-1.33 → jsonpatch-1.34}/setup.py +8 -17
- {jsonpatch-1.33 → jsonpatch-1.34}/tests.py +291 -20
- {jsonpatch-1.33 → jsonpatch-1.34}/AUTHORS +0 -0
- {jsonpatch-1.33 → jsonpatch-1.34}/LICENSE +0 -0
- {jsonpatch-1.33 → jsonpatch-1.34}/MANIFEST.in +0 -0
- {jsonpatch-1.33 → jsonpatch-1.34}/bin/jsonpatch +0 -0
- {jsonpatch-1.33 → jsonpatch-1.34}/jsonpatch.egg-info/dependency_links.txt +0 -0
- {jsonpatch-1.33 → jsonpatch-1.34}/jsonpatch.egg-info/requires.txt +0 -0
- {jsonpatch-1.33 → jsonpatch-1.34}/jsonpatch.egg-info/top_level.txt +0 -0
- {jsonpatch-1.33 → jsonpatch-1.34}/requirements.txt +0 -0
- {jsonpatch-1.33 → jsonpatch-1.34}/tests.js +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: jsonpatch
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.34
|
|
4
4
|
Summary: Apply JSON-Patches (RFC 6902)
|
|
5
5
|
Home-page: https://github.com/stefankoegl/python-json-patch
|
|
6
6
|
Author: Stefan Kögl
|
|
@@ -12,26 +12,38 @@ Project-URL: Documentation, https://python-json-patch.readthedocs.org/
|
|
|
12
12
|
Project-URL: PyPI, https://pypi.org/pypi/jsonpatch
|
|
13
13
|
Project-URL: Tests, https://travis-ci.org/stefankoegl/python-json-patch
|
|
14
14
|
Project-URL: Test Coverage, https://coveralls.io/r/stefankoegl/python-json-patch
|
|
15
|
-
Platform: UNKNOWN
|
|
16
15
|
Classifier: Development Status :: 5 - Production/Stable
|
|
17
16
|
Classifier: Environment :: Console
|
|
18
17
|
Classifier: Intended Audience :: Developers
|
|
19
18
|
Classifier: License :: OSI Approved :: BSD License
|
|
20
19
|
Classifier: Operating System :: OS Independent
|
|
21
20
|
Classifier: Programming Language :: Python
|
|
22
|
-
Classifier: Programming Language :: Python :: 2
|
|
23
|
-
Classifier: Programming Language :: Python :: 2.7
|
|
24
21
|
Classifier: Programming Language :: Python :: 3
|
|
25
|
-
Classifier: Programming Language :: Python :: 3
|
|
26
|
-
Classifier: Programming Language :: Python :: 3.
|
|
27
|
-
Classifier: Programming Language :: Python :: 3.
|
|
22
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
24
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
25
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
28
26
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
29
27
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
30
28
|
Classifier: Topic :: Software Development :: Libraries
|
|
31
29
|
Classifier: Topic :: Utilities
|
|
32
|
-
Requires-Python: >=
|
|
30
|
+
Requires-Python: >=3.10
|
|
31
|
+
Description-Content-Type: text/markdown
|
|
33
32
|
License-File: LICENSE
|
|
34
33
|
License-File: AUTHORS
|
|
34
|
+
Requires-Dist: jsonpointer>=1.9
|
|
35
|
+
Dynamic: author
|
|
36
|
+
Dynamic: author-email
|
|
37
|
+
Dynamic: classifier
|
|
38
|
+
Dynamic: description
|
|
39
|
+
Dynamic: description-content-type
|
|
40
|
+
Dynamic: home-page
|
|
41
|
+
Dynamic: license
|
|
42
|
+
Dynamic: license-file
|
|
43
|
+
Dynamic: project-url
|
|
44
|
+
Dynamic: requires-dist
|
|
45
|
+
Dynamic: requires-python
|
|
46
|
+
Dynamic: summary
|
|
35
47
|
|
|
36
48
|
python-json-patch
|
|
37
49
|
=================
|
|
@@ -62,4 +74,13 @@ To run external tests (such as those from https://github.com/json-patch/json-pat
|
|
|
62
74
|
|
|
63
75
|
./ext_tests.py ../json-patch-tests/tests.json
|
|
64
76
|
|
|
77
|
+
Running property-based tests
|
|
78
|
+
----------------------------
|
|
79
|
+
Property-based tests using [Hypothesis](https://hypothesis.readthedocs.io/)
|
|
80
|
+
are in property_tests.py. Properties that the implementation does not satisfy
|
|
81
|
+
yet are marked as expected failures.
|
|
65
82
|
|
|
83
|
+
pip install hypothesis
|
|
84
|
+
python property_tests.py
|
|
85
|
+
|
|
86
|
+
Set `HYPOTHESIS_PROFILE=thorough` to run many more examples.
|
|
@@ -26,3 +26,14 @@ Running external tests
|
|
|
26
26
|
To run external tests (such as those from https://github.com/json-patch/json-patch-tests) use ext_test.py
|
|
27
27
|
|
|
28
28
|
./ext_tests.py ../json-patch-tests/tests.json
|
|
29
|
+
|
|
30
|
+
Running property-based tests
|
|
31
|
+
----------------------------
|
|
32
|
+
Property-based tests using [Hypothesis](https://hypothesis.readthedocs.io/)
|
|
33
|
+
are in property_tests.py. Properties that the implementation does not satisfy
|
|
34
|
+
yet are marked as expected failures.
|
|
35
|
+
|
|
36
|
+
pip install hypothesis
|
|
37
|
+
python property_tests.py
|
|
38
|
+
|
|
39
|
+
Set `HYPOTHESIS_PROFILE=thorough` to run many more examples.
|
|
@@ -67,7 +67,7 @@ class TestCaseTemplate(unittest.TestCase):
|
|
|
67
67
|
# if there is no 'expected' we only verify that applying the patch
|
|
68
68
|
# does not raise an exception
|
|
69
69
|
if 'expected' in test:
|
|
70
|
-
self.
|
|
70
|
+
self.assertEqual(res, test['expected'], test.get('comment', ''))
|
|
71
71
|
|
|
72
72
|
|
|
73
73
|
def make_test_case(tests):
|
|
@@ -98,7 +98,7 @@ def get_suite(filenames):
|
|
|
98
98
|
# we use the (potentially) patched version of json.load here
|
|
99
99
|
tests = jsonpatch.json.load(f)
|
|
100
100
|
cls = make_test_case(tests)
|
|
101
|
-
suite.addTest(unittest.
|
|
101
|
+
suite.addTest(unittest.defaultTestLoader.loadTestsFromTestCase(cls))
|
|
102
102
|
|
|
103
103
|
return suite
|
|
104
104
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: jsonpatch
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.34
|
|
4
4
|
Summary: Apply JSON-Patches (RFC 6902)
|
|
5
5
|
Home-page: https://github.com/stefankoegl/python-json-patch
|
|
6
6
|
Author: Stefan Kögl
|
|
@@ -12,26 +12,38 @@ Project-URL: Documentation, https://python-json-patch.readthedocs.org/
|
|
|
12
12
|
Project-URL: PyPI, https://pypi.org/pypi/jsonpatch
|
|
13
13
|
Project-URL: Tests, https://travis-ci.org/stefankoegl/python-json-patch
|
|
14
14
|
Project-URL: Test Coverage, https://coveralls.io/r/stefankoegl/python-json-patch
|
|
15
|
-
Platform: UNKNOWN
|
|
16
15
|
Classifier: Development Status :: 5 - Production/Stable
|
|
17
16
|
Classifier: Environment :: Console
|
|
18
17
|
Classifier: Intended Audience :: Developers
|
|
19
18
|
Classifier: License :: OSI Approved :: BSD License
|
|
20
19
|
Classifier: Operating System :: OS Independent
|
|
21
20
|
Classifier: Programming Language :: Python
|
|
22
|
-
Classifier: Programming Language :: Python :: 2
|
|
23
|
-
Classifier: Programming Language :: Python :: 2.7
|
|
24
21
|
Classifier: Programming Language :: Python :: 3
|
|
25
|
-
Classifier: Programming Language :: Python :: 3
|
|
26
|
-
Classifier: Programming Language :: Python :: 3.
|
|
27
|
-
Classifier: Programming Language :: Python :: 3.
|
|
22
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
24
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
25
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
28
26
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
29
27
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
30
28
|
Classifier: Topic :: Software Development :: Libraries
|
|
31
29
|
Classifier: Topic :: Utilities
|
|
32
|
-
Requires-Python: >=
|
|
30
|
+
Requires-Python: >=3.10
|
|
31
|
+
Description-Content-Type: text/markdown
|
|
33
32
|
License-File: LICENSE
|
|
34
33
|
License-File: AUTHORS
|
|
34
|
+
Requires-Dist: jsonpointer>=1.9
|
|
35
|
+
Dynamic: author
|
|
36
|
+
Dynamic: author-email
|
|
37
|
+
Dynamic: classifier
|
|
38
|
+
Dynamic: description
|
|
39
|
+
Dynamic: description-content-type
|
|
40
|
+
Dynamic: home-page
|
|
41
|
+
Dynamic: license
|
|
42
|
+
Dynamic: license-file
|
|
43
|
+
Dynamic: project-url
|
|
44
|
+
Dynamic: requires-dist
|
|
45
|
+
Dynamic: requires-python
|
|
46
|
+
Dynamic: summary
|
|
35
47
|
|
|
36
48
|
python-json-patch
|
|
37
49
|
=================
|
|
@@ -62,4 +74,13 @@ To run external tests (such as those from https://github.com/json-patch/json-pat
|
|
|
62
74
|
|
|
63
75
|
./ext_tests.py ../json-patch-tests/tests.json
|
|
64
76
|
|
|
77
|
+
Running property-based tests
|
|
78
|
+
----------------------------
|
|
79
|
+
Property-based tests using [Hypothesis](https://hypothesis.readthedocs.io/)
|
|
80
|
+
are in property_tests.py. Properties that the implementation does not satisfy
|
|
81
|
+
yet are marked as expected failures.
|
|
65
82
|
|
|
83
|
+
pip install hypothesis
|
|
84
|
+
python property_tests.py
|
|
85
|
+
|
|
86
|
+
Set `HYPOTHESIS_PROFILE=thorough` to run many more examples.
|