diff options
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; |