Age | Commit message (Collapse) | Author | |
---|---|---|---|
2020-11-01 | test: adjust testcase name for vyos.util.dict_search() | Christian Poessinger | |
After renaming the function in commit 25551c5a ("vyos.util: T2995: rename vyos_dict_search() -> dict_search()"), the test case should be renamed, too. | |||
2020-10-30 | vyos.util: T2995: change comment style for "make test" output | Christian Poessinger | |
2020-10-28 | vyos.util: T2995: rename vyos_dict_search() -> dict_search() | Christian Poessinger | |
Renamed using snippet below: ---------------------------- for file in $(find . -name "*.py") do sed -i "s/vyos_dict_search/dict_search/" $file done | |||
2020-10-25 | test: import cleanup | Christian Poessinger | |
2020-10-19 | unittests: T2995: vyos_dict_search() must return None on non-existing keys | Christian Poessinger | |
The current wversion unfortunately will raise a KeyError: >>> data = {} >>> vyos_dict_search('foo', data) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python3/dist-packages/vyos/util.py", line 685, in vyos_dict_search return dict[path] KeyError: 'foo' |