fixed a couple of issues with test code introduced by coding changes for account API
parent
a05d692c6f
commit
cf1dcbf4ae
|
@ -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
|
||||
|
|
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue