Fix bad city information in test (#1607)

pull/1608/head
Åke 2018-05-23 08:21:10 +02:00 committed by GitHub
parent 52abe14209
commit 95525205ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ class TestConfiguration(TestCase):
@mock.patch('mycroft.api.DeviceApi')
def test_remote(self, mock_api):
remote_conf = {'TestConfig': True, 'uuid': 1234}
remote_location = {'city': 'Stockholm'}
remote_location = {'city': {'name': 'Stockholm'}}
dev_api = mock.MagicMock()
dev_api.get_settings.return_value = remote_conf
dev_api.get_location.return_value = remote_location
@ -30,7 +30,7 @@ class TestConfiguration(TestCase):
rc = mycroft.configuration.RemoteConf()
self.assertTrue(rc['test_config'])
self.assertEquals(rc['location']['city'], 'Stockholm')
self.assertEquals(rc['location']['city']['name'], 'Stockholm')
@mock.patch('json.dump')
@mock.patch('mycroft.configuration.config.exists')