Migrating to Python v3
- support for Python v3.8.x
- support for Python v3.5.x
- new tag, 2019.2.8
- updates class generation and iterators
- unittests updated with coverage >75%
- new coverage routines
- unittests profiling
- full fake data for unittests
- unittest testrun is ~1.5 seconds long
Bugfixes
- 34834, proper use of 'sudo' option
- multiple proper iterator use
- 37919, show warning when installed and candidate versions
are newer comparing to release version
Change-Id: Idd6b889f7ce94ae0c832e2f0a0346e4fdc3264a3
Related-PROD: PROD-34834 PROD-34664 PROD-34919
diff --git a/tests/test_reclass_comparer.py b/tests/test_reclass_comparer.py
new file mode 100644
index 0000000..07ff9a6
--- /dev/null
+++ b/tests/test_reclass_comparer.py
@@ -0,0 +1,45 @@
+import os
+
+from tests.mocks import _res_dir
+from tests.test_base import CfgCheckerTestBase
+
+
+class TestReclassModule(CfgCheckerTestBase):
+ def test_reclass_list(self):
+ _models_dir = os.path.join(_res_dir, "models")
+ _args = ["list", "-p", _models_dir]
+
+ _r_code = self.run_cli(
+ "reclass",
+ _args
+ )
+ self.assertEqual(
+ _r_code,
+ 0,
+ "'cmp-reclass {}' command failed".format(" ".join(_args))
+ )
+
+ def test_reclass_compare(self):
+ _models_dir = os.path.join(_res_dir, "models")
+ _model01 = os.path.join(_models_dir, "model01")
+ _model02 = os.path.join(_models_dir, "model02")
+ _report_path = os.path.join(_res_dir, "_fake.html")
+ _args = [
+ "diff",
+ "--model1",
+ _model01,
+ "--model2",
+ _model02,
+ "--html",
+ _report_path
+ ]
+
+ _r_code = self.run_cli(
+ "reclass",
+ _args
+ )
+ self.assertEqual(
+ _r_code,
+ 0,
+ "'cmp-reclass {}' command failed".format(" ".join(_args))
+ )