mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-07 17:36:00 +00:00
chore(linux): Address code review comments
This commit is contained in:
parent
dbdc5e71a8
commit
fe90bb33eb
2 changed files with 5 additions and 2 deletions
|
|
@ -1,3 +1,4 @@
|
|||
#!/usr/bin/python3
|
||||
import unittest
|
||||
from unittest.mock import create_autospec, patch
|
||||
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue