tests: replace unecessary map() call in test_live

caught by flake8
This commit is contained in:
Daniele Trifirò
2022-06-01 20:41:14 +03:00
committed by Ruslan Kuprieiev
parent 52f02d238d
commit 906c87fdef
+4 -8
View File
@@ -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"))