tests: filter warnings (#9115)

This commit is contained in:
skshetry
2023-03-06 15:41:45 +05:45
committed by GitHub
parent 1d2892efac
commit e7d4f5b24e
7 changed files with 50 additions and 29 deletions
+3 -3
View File
@@ -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])