aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_versions.py
blob: 7571854d052b40c673c72ddd6d2156114c01f2fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import warnings

from onap_data_provider.versions import VersionsEnum


def test_versions_init():
    v_none = VersionsEnum.get_version_by_number("None")
    assert v_none == VersionsEnum.NONE
    assert v_none.value.version_number == "None"
    assert v_none.value.schema_path

    v_1_0 = VersionsEnum.get_version_by_number("1.0")
    assert v_1_0 == VersionsEnum.V1_0
    assert v_1_0.value.version_number == "1.0"
    assert v_1_0.value.schema_path