summaryrefslogtreecommitdiff
path: root/jsonschema
diff options
context:
space:
mode:
authorJulian Berman <Julian@GrayVines.com>2023-02-09 16:44:37 +0100
committerJulian Berman <Julian@GrayVines.com>2023-02-09 16:44:37 +0100
commit3b9d58cd907631d5c62d6ac10bac27657307a66d (patch)
tree55e4e589c87a96d8bb392ce67b598ca2eed43209 /jsonschema
parent357d464750e2cd9a639b0df212045be8817b9bc4 (diff)
downloadjsonschema-3b9d58cd907631d5c62d6ac10bac27657307a66d.tar.gz
Fix some (irrelevantly) broken JSON pointers in CLI tests.
Diffstat (limited to 'jsonschema')
-rw-r--r--jsonschema/tests/test_cli.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/jsonschema/tests/test_cli.py b/jsonschema/tests/test_cli.py
index 64f77b0..84f8812 100644
--- a/jsonschema/tests/test_cli.py
+++ b/jsonschema/tests/test_cli.py
@@ -708,7 +708,7 @@ class TestCLI(TestCase):
ref_path = Path(ref_schema_file.name)
ref_path.write_text('{"definitions": {"num": {"type": "integer"}}}')
- schema = f'{{"$ref": "{ref_path.name}#definitions/num"}}'
+ schema = f'{{"$ref": "{ref_path.name}#/definitions/num"}}'
self.assertOutputs(
files=dict(some_schema=schema, some_instance="1"),
@@ -729,7 +729,7 @@ class TestCLI(TestCase):
ref_path = Path(ref_schema_file.name)
ref_path.write_text('{"definitions": {"num": {"type": "integer"}}}')
- schema = f'{{"$ref": "{ref_path.name}#definitions/num"}}'
+ schema = f'{{"$ref": "{ref_path.name}#/definitions/num"}}'
self.assertOutputs(
files=dict(some_schema=schema, some_instance='"1"'),