dvc metrics show: implement jsonpath-ng

updated setup.py
updated test_metrics.py::assertMetricsHaveRelativePaths

Fixes #1919
This commit is contained in:
Brett Barkley
2019-04-28 09:01:28 -04:00
parent beef1e32b0
commit 4260a6246d
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ install_requires = [
"nanotime>=0.5.2",
"pyasn1>=0.4.1",
"schema>=0.6.7",
"jsonpath-rw==1.4.0",
"jsonpath-ng>=1.4.3",
"requests>=2.18.4",
"grandalf==0.6",
"asciimatics>=1.10.0",
+2
View File
@@ -343,6 +343,7 @@ class TestMetrics(TestDvc):
metric_htsv_path = os.path.join(root_relpath, "metric_htsv")
metric_csv_path = os.path.join(root_relpath, "metric_csv")
metric_hcsv_path = os.path.join(root_relpath, "metric_hcsv")
metric_json_ext_path = os.path.join(root_relpath, "metric_json_ext")
for branch in ["bar", "baz", "foo"]:
self.assertEqual(
set(metrics[branch].keys()),
@@ -353,6 +354,7 @@ class TestMetrics(TestDvc):
metric_htsv_path,
metric_csv_path,
metric_hcsv_path,
metric_json_ext_path,
},
)