From 8c3d06f0ae061105fc9ab31b95eac9365850f4b6 Mon Sep 17 00:00:00 2001 From: Mateusz Susik Date: Wed, 31 May 2017 20:58:05 +0200 Subject: [PATCH] 2.0: update update test Signed-off-by: Mateusz Susik --- orcid/testsuite/helpers.py | 1 - orcid/testsuite/test_orcid.py | 12 +++--------- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/orcid/testsuite/helpers.py b/orcid/testsuite/helpers.py index afd4d9f..d909195 100644 --- a/orcid/testsuite/helpers.py +++ b/orcid/testsuite/helpers.py @@ -25,4 +25,3 @@ }] } } - diff --git a/orcid/testsuite/test_orcid.py b/orcid/testsuite/test_orcid.py index 43f38f7..b2a6d82 100644 --- a/orcid/testsuite/test_orcid.py +++ b/orcid/testsuite/test_orcid.py @@ -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