diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-09-05 19:04:34 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-09-05 19:04:34 -0700 |
commit | ba722671b4791524384010705bef0aaa83c22c0b (patch) | |
tree | 9d546b87a36cfa521d8a64ea032948416c9e6314 /rust/tests | |
parent | a65dfc914517376b5ededb82e594236c5d61c721 (diff) | |
download | fatcat-ba722671b4791524384010705bef0aaa83c22c0b.tar.gz fatcat-ba722671b4791524384010705bef0aaa83c22c0b.zip |
rename rust crate fatcat-api-spec -> fatcat-openapi
Diffstat (limited to 'rust/tests')
-rw-r--r-- | rust/tests/helpers.rs | 6 | ||||
-rw-r--r-- | rust/tests/test_refs.rs | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/rust/tests/helpers.rs b/rust/tests/helpers.rs index d0b0b6d3..918dbe5c 100644 --- a/rust/tests/helpers.rs +++ b/rust/tests/helpers.rs @@ -2,7 +2,7 @@ use fatcat::auth::MacaroonAuthMiddleware; use fatcat::editing_crud::EditgroupCrud; use fatcat::identifiers::FatcatId; use fatcat::server; -use fatcat_api_spec::models::Editgroup; +use fatcat_openapi::models::Editgroup; use iron::headers::{Authorization, Bearer, ContentType}; use iron::mime::Mime; use iron::{status, Chain, Headers}; @@ -28,9 +28,9 @@ pub fn setup_http() -> ( .create_token(admin_id, None) .unwrap(); - let router = fatcat_api_spec::router(server); + let router = fatcat_openapi::router(server); let mut chain = Chain::new(router); - chain.link_before(fatcat_api_spec::server::ExtractAuthData); + chain.link_before(fatcat_openapi::server::ExtractAuthData); chain.link_before(MacaroonAuthMiddleware::new()); let mut headers = Headers::new(); let mime: Mime = "application/json".parse().unwrap(); diff --git a/rust/tests/test_refs.rs b/rust/tests/test_refs.rs index 28dfd6b8..ced89828 100644 --- a/rust/tests/test_refs.rs +++ b/rust/tests/test_refs.rs @@ -5,7 +5,7 @@ use fatcat::editing::{accept_editgroup, make_edit_context}; use fatcat::entity_crud::{EntityCrud, HideFlags}; use fatcat::identifiers::FatcatId; use fatcat::server; -use fatcat_api_spec::models::*; +use fatcat_openapi::models::*; use std::str::FromStr; use uuid::Uuid; |