File: test_versioning.py

package info (click to toggle)
asdf-standard 1.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,068 kB
  • sloc: python: 1,298; makefile: 16
file content (12 lines) | stat: -rw-r--r-- 544 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
import pytest
from common import ROOT_PATH

from asdf_standard import _versioning


@pytest.mark.parametrize("version_type", ["stable", "unstable"])
def test_supported_versions_match_manifests(version_type):
    """Test that versions in versioning.*_core_schema_versions match the manifests"""
    MANIFESTS_PATH = ROOT_PATH / "resources" / version_type / "manifests" / "asdf-format.org" / "core"
    for version in getattr(_versioning, f"{version_type}_core_schema_versions"):
        assert (MANIFESTS_PATH / f"core-{version}.yaml").exists()