summaryrefslogtreecommitdiffstats
path: root/rust/tests/test_old_python_tests.rs
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-12-24 16:04:13 -0800
committerBryan Newbold <bnewbold@robocracy.org>2018-12-24 16:04:13 -0800
commitb86e007b7469ebb22a806d38aca0bccf9078e80d (patch)
tree69dc8bda4316cae4bbdbe3acea287d46baa42b96 /rust/tests/test_old_python_tests.rs
parent86fd0a416efd4015dc47494e723afd7f13771006 (diff)
downloadfatcat-b86e007b7469ebb22a806d38aca0bccf9078e80d.tar.gz
fatcat-b86e007b7469ebb22a806d38aca0bccf9078e80d.zip
rust impl of API harmonization
Diffstat (limited to 'rust/tests/test_old_python_tests.rs')
-rw-r--r--rust/tests/test_old_python_tests.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/rust/tests/test_old_python_tests.rs b/rust/tests/test_old_python_tests.rs
index d7e5c03b..b3d4a316 100644
--- a/rust/tests/test_old_python_tests.rs
+++ b/rust/tests/test_old_python_tests.rs
@@ -26,7 +26,7 @@ fn test_api_rich_create() {
new_eg.description = Some("a unit test edit".to_string());
let resp = client.create_editgroup(new_eg).wait().unwrap();
let editgroup_id = match resp {
- CreateEditgroupResponse::SuccessfullyCreated(eg) => eg.id.unwrap(),
+ CreateEditgroupResponse::SuccessfullyCreated(eg) => eg.editgroup_id.unwrap(),
_ => unreachable!(),
};
@@ -116,7 +116,7 @@ fn test_api_rich_create() {
let mut new_file = FileEntity::new();
new_file.sha1 = Some("7d97e98f8af710c7e7fe703abc8f639e0ee507c4".to_string());
new_file.size = Some(1234);
- new_file.releases = Some(vec![release_id.clone()]);
+ new_file.release_ids = Some(vec![release_id.clone()]);
// extra=dict(f=4, b="zing"))),
let resp = client
.create_file(new_file, Some(editgroup_id.clone()))
@@ -178,7 +178,7 @@ fn test_api_rich_create() {
GetFileResponse::FoundEntity(e) => e,
_ => unreachable!(),
};
- assert_eq!(fe.releases.unwrap()[0], release_id.clone());
+ assert_eq!(fe.release_ids.unwrap()[0], release_id.clone());
// had a test for active_editgroup here, but that's soon-to-be-deprecated