File: test_schema_uri_map.py

package info (click to toggle)
pystac 1.13.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 19,904 kB
  • sloc: python: 24,370; makefile: 124; sh: 7
file content (12 lines) | stat: -rw-r--r-- 378 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
import pystac
from pystac.validation.schema_uri_map import DefaultSchemaUriMap


def test_gets_schema_uri_for_old_version() -> None:
    d = DefaultSchemaUriMap()
    uri = d.get_object_schema_uri(pystac.STACObjectType.ITEM, "0.8.0")

    assert uri == (
        "https://raw.githubusercontent.com/radiantearth/stac-spec/v0.8.0/"
        "item-spec/json-schema/item.json"
    )