Skip to content

Commit

Permalink
2.0: update update test
Browse files Browse the repository at this point in the history
Signed-off-by: Mateusz Susik <mateuszsusik@gmail.com>
  • Loading branch information
MSusik committed May 31, 2017
1 parent 477be7e commit 8c3d06f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
1 change: 0 additions & 1 deletion orcid/testsuite/helpers.py
Expand Up @@ -25,4 +25,3 @@
}]
}
}

12 changes: 3 additions & 9 deletions orcid/testsuite/test_orcid.py
Expand Up @@ -210,15 +210,9 @@ def get_added_works(token):
put_code = added_works[0]['work-summary'][0]['put-code']

# Update
memberAPI.update_record(USER_ORCID, token, 'work', {
'type': 'OTHER',
'title': {'title': WORK_NAME2},
'external-ids': {'external-id': [{
'external-id-type': 'source-work-id',
'external-id-value': '1234333',
'external-id-url': 'www.example.com/12344333'
}]}},
put_code)
work['type'] = 'OTHER'

memberAPI.update_record(USER_ORCID, token, 'work', work, put_code)

added_works = get_added_works(token)
assert len(added_works) == 1
Expand Down

0 comments on commit 8c3d06f

Please sign in to comment.