From a867da74bd15d6777d32752238463e94ef890113 Mon Sep 17 00:00:00 2001 From: Brett Date: Thu, 8 Feb 2024 09:16:41 -0500 Subject: [PATCH] update metaschema version in tests --- asdf/_tests/tags/core/tests/test_ndarray.py | 4 ++-- asdf/_tests/test_info.py | 6 +++--- asdf/_tests/test_schema.py | 18 +++++++++--------- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/asdf/_tests/tags/core/tests/test_ndarray.py b/asdf/_tests/tags/core/tests/test_ndarray.py index a21fc822e..5b64b2e8d 100644 --- a/asdf/_tests/tags/core/tests/test_ndarray.py +++ b/asdf/_tests/tags/core/tests/test_ndarray.py @@ -75,7 +75,7 @@ def with_custom_extension(): { "http://nowhere.org/schemas/custom/datatype-1.0.0": """%YAML 1.1 --- -$schema: "http://stsci.edu/schemas/asdf/asdf-schema-1.0.0" +$schema: "http://stsci.edu/schemas/asdf/asdf-schema-1.1.0" id: "http://nowhere.org/schemas/custom/datatype-1.0.0" type: object properties: @@ -102,7 +102,7 @@ def with_custom_extension(): exact_datatype: true""", "http://nowhere.org/schemas/custom/ndim-1.0.0": """%YAML 1.1 --- -$schema: "http://stsci.edu/schemas/asdf/asdf-schema-1.0.0" +$schema: "http://stsci.edu/schemas/asdf/asdf-schema-1.1.0" id: "http://nowhere.org/schemas/custom/ndim-1.0.0" type: object properties: diff --git a/asdf/_tests/test_info.py b/asdf/_tests/test_info.py index 210786af6..94353051b 100644 --- a/asdf/_tests/test_info.py +++ b/asdf/_tests/test_info.py @@ -156,7 +156,7 @@ def manifest_extension(tmp_path): foo_schema = """ %YAML 1.1 --- -$schema: "asdf://stsci.edu/schemas/asdf/asdf-schema-1.0.0" +$schema: "asdf://stsci.edu/schemas/asdf/asdf-schema-1.1.0" id: "asdf://somewhere.org/asdf/schemas/foo-1.0.0" type: object @@ -221,7 +221,7 @@ def manifest_extension(tmp_path): bar_schema = """ %YAML 1.1 --- -$schema: "asdf://stsci.edu/schemas/asdf/asdf-schema-1.0.0" +$schema: "asdf://stsci.edu/schemas/asdf/asdf-schema-1.1.0" id: "asdf://somewhere.org/asdf/schemas/bar-1.0.0" type: object @@ -245,7 +245,7 @@ def manifest_extension(tmp_path): drink_schema = """ %YAML 1.1 --- -$schema: "asdf://stsci.edu/schemas/asdf/asdf-schema-1.0.0" +$schema: "asdf://stsci.edu/schemas/asdf/asdf-schema-1.1.0" id: "asdf://somewhere.org/asdf/schemas/drink-1.0.0" type: object diff --git a/asdf/_tests/test_schema.py b/asdf/_tests/test_schema.py index 48c741afb..a2c7b926b 100644 --- a/asdf/_tests/test_schema.py +++ b/asdf/_tests/test_schema.py @@ -118,7 +118,7 @@ def test_load_schema(tmp_path): schema_def = """ %YAML 1.1 --- -$schema: "http://stsci.edu/schemas/asdf/asdf-schema-1.0.0" +$schema: "http://stsci.edu/schemas/asdf/asdf-schema-1.1.0" id: "http://stsci.edu/schemas/asdf/nugatory/nugatory-1.0.0" tag: "tag:stsci.edu:asdf/nugatory/nugatory-1.0.0" @@ -141,7 +141,7 @@ def test_load_schema_with_full_tag(tmp_path): schema_def = """ %YAML 1.1 --- -$schema: "http://stsci.edu/schemas/asdf/asdf-schema-1.0.0" +$schema: "http://stsci.edu/schemas/asdf/asdf-schema-1.1.0" id: "http://stsci.edu/schemas/asdf/nugatory/nugatory-1.0.0" tag: "tag:stsci.edu:asdf/nugatory/nugatory-1.0.0" @@ -166,7 +166,7 @@ def test_load_schema_with_file_url(tmp_path): %YAML 1.1 %TAG !asdf! tag:stsci.edu:asdf/ --- -$schema: "http://stsci.edu/schemas/asdf/asdf-schema-1.0.0" +$schema: "http://stsci.edu/schemas/asdf/asdf-schema-1.1.0" id: "http://stsci.edu/schemas/asdf/nugatory/nugatory-1.0.0" tag: "tag:stsci.edu:asdf/nugatory/nugatory-1.0.0" @@ -188,7 +188,7 @@ def test_load_schema_with_file_url(tmp_path): def test_load_schema_with_asdf_uri_scheme(): subschema_content = """%YAML 1.1 --- -$schema: http://stsci.edu/schemas/asdf/asdf-schema-1.0.0 +$schema: http://stsci.edu/schemas/asdf/asdf-schema-1.1.0 id: asdf://somewhere.org/schemas/bar bar: @@ -197,7 +197,7 @@ def test_load_schema_with_asdf_uri_scheme(): """ content = """%YAML 1.1 --- -$schema: http://stsci.edu/schemas/asdf/asdf-schema-1.0.0 +$schema: http://stsci.edu/schemas/asdf/asdf-schema-1.1.0 id: asdf://somewhere.org/schemas/foo definitions: @@ -235,7 +235,7 @@ def test_load_schema_with_stsci_id(): """ subschema_content = """%YAML 1.1 --- -$schema: http://stsci.edu/schemas/asdf/asdf-schema-1.0.0 +$schema: http://stsci.edu/schemas/asdf/asdf-schema-1.1.0 id: http://stsci.edu/schemas/bar bar: @@ -244,7 +244,7 @@ def test_load_schema_with_stsci_id(): """ content = """%YAML 1.1 --- -$schema: http://stsci.edu/schemas/asdf/asdf-schema-1.0.0 +$schema: http://stsci.edu/schemas/asdf/asdf-schema-1.1.0 id: http://stsci.edu/schemas/foo definitions: @@ -1245,7 +1245,7 @@ def _test_validator(validator, value, instance, schema): def test_tag_validator(): content = """%YAML 1.1 --- -$schema: http://stsci.edu/schemas/asdf/asdf-schema-1.0.0 +$schema: http://stsci.edu/schemas/asdf/asdf-schema-1.1.0 id: asdf://somewhere.org/schemas/foo tag: asdf://somewhere.org/tags/foo ... @@ -1261,7 +1261,7 @@ def test_tag_validator(): content = """%YAML 1.1 --- -$schema: http://stsci.edu/schemas/asdf/asdf-schema-1.0.0 +$schema: http://stsci.edu/schemas/asdf/asdf-schema-1.1.0 id: asdf://somewhere.org/schemas/bar tag: asdf://somewhere.org/tags/bar-* ...