From cf1dcbf4ae8af6efab352be78aa238d0d7fff653 Mon Sep 17 00:00:00 2001 From: Chris Veilleux Date: Sun, 16 Jun 2019 18:46:11 -0500 Subject: [PATCH] fixed a couple of issues with test code introduced by coding changes for account API --- api/public/tests/features/get_device.feature | 1 - api/public/tests/features/steps/device_skills.py | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/api/public/tests/features/get_device.feature b/api/public/tests/features/get_device.feature index 9a37ef4d..23c940ee 100644 --- a/api/public/tests/features/get_device.feature +++ b/api/public/tests/features/get_device.feature @@ -14,7 +14,6 @@ Feature: Get device's information Scenario: Try to get a device without passing the access token When try to fetch a device without the authorization header Then a 401 status code should be returned - And device last contact timestamp is updated Scenario: Update device information When the device is updated diff --git a/api/public/tests/features/steps/device_skills.py b/api/public/tests/features/steps/device_skills.py index d46a1407..63fd99eb 100644 --- a/api/public/tests/features/steps/device_skills.py +++ b/api/public/tests/features/steps/device_skills.py @@ -102,14 +102,14 @@ def create_skill_settings(context): def update_skill(context): response = json.loads(context.upload_device_response.data) update_settings = AccountSkillSetting( - skill_id=response['uuid'], settings_display={}, settings_values=new_settings, - devices=[context.device_name] + device_names=[context.device_name] ) + skill_ids = [response['uuid']] db = connect_to_db(context.client_config['DB_CONNECTION_CONFIG']) skill_setting_repo = SkillSettingRepository(db, context.account.id) - skill_setting_repo.update_skill_settings(update_settings) + skill_setting_repo.update_skill_settings(update_settings, skill_ids) @when('the skill settings is fetched')