mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
tests: replace unecessary map() call in test_live
caught by flake8
This commit is contained in:
committed by
Ruslan Kuprieiev
parent
52f02d238d
commit
906c87fdef
@@ -184,14 +184,10 @@ def checkpoints_metric(show_results, metric_file, metric_name):
|
||||
tmp.pop("workspace")
|
||||
tmp = first(tmp.values())
|
||||
tmp.pop("baseline")
|
||||
return list(
|
||||
map(
|
||||
lambda exp: exp["data"]["metrics"][metric_file]["data"][
|
||||
metric_name
|
||||
],
|
||||
list(tmp.values()),
|
||||
)
|
||||
)
|
||||
return [
|
||||
exp["data"]["metrics"][metric_file]["data"][metric_name]
|
||||
for exp in tmp.values()
|
||||
]
|
||||
|
||||
|
||||
@pytest.mark.parametrize("typ", ("live", "live_no_cache"))
|
||||
|
||||
Reference in New Issue
Block a user