Skip to content

Commit 54bd925

Browse files
committed
Fix missed corrections
1 parent 188488d commit 54bd925

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

test/tavern/create_item_type_template.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@ def create_itemtype_template():
3535
# Create template for entering data
3636
template = create_template(result['schema'])
3737
template['$schema'] = '/items/jsonschema/' + str(schema[0])
38-
template['shared_user_ids'] = -1
38+
template['shared_user_ids'] = []
3939
with open('request_params/item_type_template/template/' + file_name + '.json', 'w', encoding='utf-8') as f:
4040
f.write(json.dumps(template, indent=4, ensure_ascii=False))
4141

4242
# Create template for generating random data
4343
random_template, _ = create_random_template(result['schema'])
4444
random_template['$schema'] = '/items/jsonschema/' + str(schema[0])
45-
random_template['shared_user_ids'] = -1
45+
random_template['shared_user_ids'] = []
4646
with open('request_params/item_type_template/template/' + file_name + '_random.json', 'w', encoding='utf-8') as f:
4747
f.write(json.dumps(random_template, indent=4, ensure_ascii=False))
4848

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
id json version_id
2-
<<uuid_2000001>> {"_oai": {"id": "oai:<<host_name>>:02000001"}, "path": ["1623632832836"], "owner": "3", "recid": "2000001", "title": ["テストタイトル"], "pubdate": {"attribute_name": "PubDate", "attribute_value": "2024-12-23"}, "_buckets": {"deposit": "<<bucket_uuid_2000001>>"}, "_deposit": {"id": "2000001", "pid": {"type": "depid", "value": "2000001", "revision_id": 0}, "owner": "3", "owners": [3], "status": "published", "created_by": 3, "owners_ext": {"email": "contributor@example.org", "username": "", "displayname": ""}}, "item_title": "テストタイトル", "author_link": [], "item_type_id": "30002", "publish_date": "2024-12-23", "publish_status": "0", "weko_link": {}, "weko_shared_id": -1, "item_30002_title0": {"attribute_name": "Title", "attribute_value_mlt": [{"subitem_title": "テストタイトル", "subitem_title_language": "ja"}]}, "item_30002_resource_type13": {"attribute_name": "Resource Type", "attribute_value_mlt": [{"resourceuri": "http://purl.org/coar/resource_type/c_1843", "resourcetype": "other"}]}, "relation_version_is_last": true} 7
3-
<<uuid_2000001.1>> {"_oai": {"id": "oai:<<host_name>>:02000001.1", "sets": []}, "path": ["1623632832836"], "owner": "3", "recid": "2000001.1", "title": ["テストタイトル"], "pubdate": {"attribute_name": "PubDate", "attribute_value": "2024-12-23"}, "_buckets": {"deposit": "<<bucket_uuid_2000001.1>>"}, "_deposit": {"id": "2000001.1", "pid": {"type": "depid", "value": "2000001.1", "revision_id": 0}, "owner": "3", "owners": [3], "status": "published", "created_by": 2}, "item_title": "テストタイトル", "author_link": [], "item_type_id": "30002", "publish_date": "2024-12-23", "publish_status": "0", "weko_link": {}, "weko_shared_id": -1, "item_30002_title0": {"attribute_name": "Title", "attribute_value_mlt": [{"subitem_title": "テストタイトル", "subitem_title_language": "ja"}]}, "item_30002_resource_type13": {"attribute_name": "Resource Type", "attribute_value_mlt": [{"resourceuri": "http://purl.org/coar/resource_type/c_1843", "resourcetype": "other"}]}, "relation_version_is_last": true} 7
2+
<<uuid_2000001>> {"_oai": {"id": "oai:<<host_name>>:02000001"}, "path": ["1623632832836"], "owner": "3", "recid": "2000001", "title": ["テストタイトル"], "pubdate": {"attribute_name": "PubDate", "attribute_value": "2024-12-23"}, "_buckets": {"deposit": "<<bucket_uuid_2000001>>"}, "_deposit": {"id": "2000001", "pid": {"type": "depid", "value": "2000001", "revision_id": 0}, "owner": "3", "owners": [3], "status": "published", "created_by": 3, "owners_ext": {"email": "contributor@example.org", "username": "", "displayname": ""}}, "item_title": "テストタイトル", "author_link": [], "item_type_id": "30002", "publish_date": "2024-12-23", "publish_status": "0", "weko_link": {}, "weko_shared_ids": [], "item_30002_title0": {"attribute_name": "Title", "attribute_value_mlt": [{"subitem_title": "テストタイトル", "subitem_title_language": "ja"}]}, "item_30002_resource_type13": {"attribute_name": "Resource Type", "attribute_value_mlt": [{"resourceuri": "http://purl.org/coar/resource_type/c_1843", "resourcetype": "other"}]}, "relation_version_is_last": true} 7
3+
<<uuid_2000001.1>> {"_oai": {"id": "oai:<<host_name>>:02000001.1", "sets": []}, "path": ["1623632832836"], "owner": "3", "recid": "2000001.1", "title": ["テストタイトル"], "pubdate": {"attribute_name": "PubDate", "attribute_value": "2024-12-23"}, "_buckets": {"deposit": "<<bucket_uuid_2000001.1>>"}, "_deposit": {"id": "2000001.1", "pid": {"type": "depid", "value": "2000001.1", "revision_id": 0}, "owner": "3", "owners": [3], "status": "published", "created_by": 2}, "item_title": "テストタイトル", "author_link": [], "item_type_id": "30002", "publish_date": "2024-12-23", "publish_status": "0", "weko_link": {}, "weko_shared_ids": [], "item_30002_title0": {"attribute_name": "Title", "attribute_value_mlt": [{"subitem_title": "テストタイトル", "subitem_title_language": "ja"}]}, "item_30002_resource_type13": {"attribute_name": "Resource Type", "attribute_value_mlt": [{"resourceuri": "http://purl.org/coar/resource_type/c_1843", "resourcetype": "other"}]}, "relation_version_is_last": true} 7

0 commit comments

Comments
 (0)