From fe90bb33eb3f1b0a93edfc93eca73cecdba6e033 Mon Sep 17 00:00:00 2001 From: Eberhard Beilharz Date: Wed, 17 Jun 2020 18:36:13 +0200 Subject: [PATCH] chore(linux): Address code review comments --- linux/keyman-config/tests/test_ibus_util.py | 1 + linux/keyman-config/tests/test_install_kmp.py | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/linux/keyman-config/tests/test_ibus_util.py b/linux/keyman-config/tests/test_ibus_util.py index db4e9e8371..5bb1dbeb6c 100644 --- a/linux/keyman-config/tests/test_ibus_util.py +++ b/linux/keyman-config/tests/test_ibus_util.py @@ -1,3 +1,4 @@ +#!/usr/bin/python3 import unittest from unittest.mock import create_autospec, patch diff --git a/linux/keyman-config/tests/test_install_kmp.py b/linux/keyman-config/tests/test_install_kmp.py index 8a0d931a87..213bcabb56 100644 --- a/linux/keyman-config/tests/test_install_kmp.py +++ b/linux/keyman-config/tests/test_install_kmp.py @@ -1,3 +1,4 @@ +#!/usr/bin/python3 import unittest from unittest.mock import create_autospec, patch, ANY @@ -65,8 +66,9 @@ class InstallKmpTests(unittest.TestCase): # Execute install_keyboards_to_ibus(keyboards, 'fooDir') # Verify - self.mockInstallToIbus.assert_called_once_with( - ANY, 'en:fooDir/foo1.kmx') + self.mockInstallToIbus.assert_called_once() + self.mockInstallToIbus.assert_called_with(ANY, 'en:fooDir/foo1.kmx') + # self.mockInstallToIbus.assert_not_called_with(ANY, 'fr:fooDir/foo1.kmx') self.mockRestartIbus.assert_called_once() bus.destroy.assert_called_once()