diff --git a/begoneads/hostsmanager_test.py b/begoneads/hostsmanager_test.py index eeac5f0..a63826e 100644 --- a/begoneads/hostsmanager_test.py +++ b/begoneads/hostsmanager_test.py @@ -19,35 +19,35 @@ def test_has_begoneads(): with patch('builtins.open', mock_open(read_data=without_begoneads)) as mock_file: hosts_manager = HostsManager('/etc/hosts') - mock_file.assert_called_with('/etc/hosts', 'r') + mock_file.assert_called_with('/etc/hosts', 'r', encoding='utf-8') assert hosts_manager.has_begoneads() == None with patch('builtins.open', mock_open(read_data=with_begoneads)) as mock_file: hosts_manager = HostsManager('/etc/hosts') - mock_file.assert_called_with('/etc/hosts', 'r') + mock_file.assert_called_with('/etc/hosts', 'r', encoding='utf-8') - assert str(hosts_manager.has_begoneads()).startswith('