mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 19:01:39 -04:00
Mocking nmcli in settings test.
This commit is contained in:
parent
b0ce7b2252
commit
e76a9412a9
1 changed files with 2 additions and 1 deletions
|
|
@ -61,7 +61,8 @@ class TestRootAPI(TestAPI):
|
|||
assert json.loads(response.body) == {'valid': False, 'regex': '.*(missing parenthesis.*'}
|
||||
|
||||
def test_get_settings(self):
|
||||
with mock.patch('wrolpi.admin.CPUFREQ_INFO', '/usr/bin/cpufreq-info'):
|
||||
with mock.patch('wrolpi.admin.CPUFREQ_INFO', '/usr/bin/cpufreq-info'), \
|
||||
mock.patch('wrolpi.admin.NMCLI', '/usr/bin/nmcli'):
|
||||
request, response = api_app.test_client.get('/api/settings')
|
||||
self.assertOK(response)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue