aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_versions.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_versions.py')
-rw-r--r--tests/test_versions.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/test_versions.py b/tests/test_versions.py
new file mode 100644
index 0000000..7571854
--- /dev/null
+++ b/tests/test_versions.py
@@ -0,0 +1,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