style: cargo fmt
This commit is contained in:
@@ -911,14 +911,13 @@ mod tests {
|
||||
.await
|
||||
.expect("series")
|
||||
.last_insert_rowid();
|
||||
let season_id: i64 = sqlx::query(
|
||||
"INSERT INTO seasons (series_id, number) VALUES (?, 1) RETURNING id",
|
||||
)
|
||||
.bind(series_id)
|
||||
.fetch_one(pool)
|
||||
.await
|
||||
.expect("season")
|
||||
.get(0);
|
||||
let season_id: i64 =
|
||||
sqlx::query("INSERT INTO seasons (series_id, number) VALUES (?, 1) RETURNING id")
|
||||
.bind(series_id)
|
||||
.fetch_one(pool)
|
||||
.await
|
||||
.expect("season")
|
||||
.get(0);
|
||||
sqlx::query_scalar(
|
||||
"INSERT INTO episodes (season_id, number, title, wanted) VALUES (?, 2, 'Hospital', 1) RETURNING id",
|
||||
)
|
||||
|
||||
@@ -490,9 +490,7 @@ async fn series_without_a_tvdb_id_maps_to_none() {
|
||||
let server = MockServer::start().await;
|
||||
Mock::given(method("GET"))
|
||||
.and(path("/3/tv/1/external_ids"))
|
||||
.respond_with(
|
||||
ResponseTemplate::new(200).set_body_string(r#"{"id": 1, "tvdb_id": null}"#),
|
||||
)
|
||||
.respond_with(ResponseTemplate::new(200).set_body_string(r#"{"id": 1, "tvdb_id": null}"#))
|
||||
.mount(&server)
|
||||
.await;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user