aboutsummaryrefslogtreecommitdiffstats
path: root/tests/apitests.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/apitests.rs')
-rw-r--r--tests/apitests.rs8
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/apitests.rs b/tests/apitests.rs
index 54b7961..a488c33 100644
--- a/tests/apitests.rs
+++ b/tests/apitests.rs
@@ -17,11 +17,7 @@
*/
use ramaskrik;
-use ramaskrik::models::{
- film::{ Film, NewFilm },
- room::Room,
- screening,
-};
+use ramaskrik::models::{Film, NewFilm, Room, Screening};
use lazy_static::lazy_static;
use rocket::http::ContentType;
@@ -136,7 +132,7 @@ fn getting_screenings_from_api() {
let mut response = client.get("/screenings").dispatch();
assert_eq!(response.content_type(), Some(ContentType::JSON));
- let fetched_screenings: Vec<(screening::Screening, Film, Room)> =
+ let fetched_screenings: Vec<(Screening, Film, Room)> =
serde_json::from_str(&response.body_string().unwrap()).unwrap();
assert_eq!(fetched_screenings.len(), 1);