From b53180fa0d283feca9e14a69437e7eaf1c0d96a4 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Mon, 20 May 2019 18:20:58 -0700 Subject: basic controlled vocabulary for withdrawn_stage --- python/tests/api_releases.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'python/tests') diff --git a/python/tests/api_releases.py b/python/tests/api_releases.py index c0c4ef90..f2a370c3 100644 --- a/python/tests/api_releases.py +++ b/python/tests/api_releases.py @@ -199,9 +199,15 @@ def test_controlled_vocab(api): r1.release_type = "article" api.create_release(eg.editgroup_id, r1) - r2 = ReleaseEntity(title="something elase", release_stage="pre-print", ext_ids=ReleaseExtIds()) + r2 = ReleaseEntity(title="something else", release_stage="pre-print", ext_ids=ReleaseExtIds()) with pytest.raises(fatcat_client.rest.ApiException): api.create_release(eg.editgroup_id, r2) r2.release_stage = "published" api.create_release(eg.editgroup_id, r2) + r3 = ReleaseEntity(title="something else", withdrawn_status="boondogle", ext_ids=ReleaseExtIds()) + with pytest.raises(fatcat_client.rest.ApiException): + api.create_release(eg.editgroup_id, r3) + r3.withdrawn_status = "spam" + api.create_release(eg.editgroup_id, r3) + -- cgit v1.2.3