From 30f65b62e84fcd9975643716d61fa21bc8495291 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Mon, 8 Apr 2019 16:25:54 +0200 Subject: Import model structs to main models module. --- tests/apitests.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'tests') 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); -- cgit v1.2.3