From ec68b432fc4efac1aac650bfef771ba1c29b0b4f Mon Sep 17 00:00:00 2001 From: Paul McCarthy <pauldmccarthy@gmail.com> Date: Thu, 9 Mar 2023 20:14:48 +0000 Subject: [PATCH] TEST: Test name collision between regular setting and selector --- bip/tests/test_bip_utils_config.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bip/tests/test_bip_utils_config.py b/bip/tests/test_bip_utils_config.py index 7718106..4b531e0 100644 --- a/bip/tests/test_bip_utils_config.py +++ b/bip/tests/test_bip_utils_config.py @@ -139,6 +139,14 @@ def test_Config_resolve_selectors(): assert result[k] == v + # selector/setting conflict - probably + # invalid, but function shouold not crash + indict = {'subject' : '12345', 'param1' : '1'} + selectors = {'subject' : '12345'} + result = config.Config.resolve_selectors(indict, selectors) + assert dicts_equal(indict, result) + + def test_Config_load_config_file(): configtoml = tw.dedent(""" -- GitLab