mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
tests: filter warnings (#9115)
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import dpath.util
|
||||
import dpath
|
||||
|
||||
dpath.options.ALLOW_EMPTY_STRING_KEYS = True
|
||||
|
||||
|
||||
def get_plot(plots_data, revision, typ="sources", file=None, endkey="data"):
|
||||
if file is not None:
|
||||
return dpath.util.get(plots_data, [revision, typ, "data", file, endkey])
|
||||
return dpath.util.get(plots_data, [revision, typ, endkey])
|
||||
return dpath.get(plots_data, [revision, typ, "data", file, endkey])
|
||||
return dpath.get(plots_data, [revision, typ, endkey])
|
||||
|
||||
Reference in New Issue
Block a user