From b35a808712600c0c9d712a5d09cabddd12c6df2a Mon Sep 17 00:00:00 2001 From: Ryan Farley Date: Sun, 17 Sep 2017 13:24:05 -0500 Subject: [PATCH] test multiple mutations for config This detects the problem in #2979 --- tests/unit/config/test_configfiles.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/unit/config/test_configfiles.py b/tests/unit/config/test_configfiles.py index c10b0c4b4..4be773e82 100644 --- a/tests/unit/config/test_configfiles.py +++ b/tests/unit/config/test_configfiles.py @@ -205,9 +205,11 @@ class TestConfigPy: assert config.instance._values['bindings.commands'] == expected def test_mutating(self, confpy): - confpy.write('c.aliases["foo"] = "message-info foo"') + confpy.write('c.aliases["foo"] = "message-info foo"', + 'c.aliases["bar"] = "message-info bar"') configfiles.read_config_py(confpy.filename) assert config.instance._values['aliases']['foo'] == 'message-info foo' + assert config.instance._values['aliases']['bar'] == 'message-info bar' def test_reading_default_location(self, config_tmpdir): (config_tmpdir / 'config.py').write_text(