From 9dba5a9fb93868dc5229d3245ddccde9d30564d9 Mon Sep 17 00:00:00 2001 From: Hook25 Date: Tue, 23 Jan 2024 10:46:15 +0100 Subject: [PATCH] Changed variable name to environment from environ --- .../checkbox_support/snap_utils/tests/test_config.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/checkbox-support/checkbox_support/snap_utils/tests/test_config.py b/checkbox-support/checkbox_support/snap_utils/tests/test_config.py index 9f4ff9b9b5..acccffa472 100644 --- a/checkbox-support/checkbox_support/snap_utils/tests/test_config.py +++ b/checkbox-support/checkbox_support/snap_utils/tests/test_config.py @@ -85,17 +85,17 @@ def test_smoke(self): m = mock_open() with patch('builtins.open', m): write_checkbox_conf({'foo': 'bar'}) - m().write.assert_called_with('[environ]\n') - m().write.assert_called_with('FOO = bar\n') - m().write.assert_called_with('\n') + m().write.assert_any_call('[environment]\n') + m().write.assert_any_call('FOO = bar\n') + m().write.assert_any_call('\n') self.assertEqual(m().write.call_count, 3) def test_writes_empty(self): m = mock_open() with patch('builtins.open', m): write_checkbox_conf({}) - m().write.assert_called_with('[environ]\n') - m().write.assert_called_with('\n') + m().write.assert_any_call('[environment]\n') + m().write.assert_any_call('\n') self.assertEqual(m().write.call_count, 2)