1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
|
From: Manuel Traut <manut@mecka.net>
Date: Wed, 20 Nov 2024 19:19:03 +0100
Subject: Disable tests that require network
---
podcasts-data/src/dbqueries.rs | 2 ++
podcasts-data/src/models/source.rs | 3 +++
podcasts-data/src/pipeline.rs | 3 +++
podcasts-gtk/src/utils.rs | 3 +++
4 files changed, 11 insertions(+)
--- a/podcasts-data/src/dbqueries.rs
+++ b/podcasts-data/src/dbqueries.rs
@@ -548,6 +548,7 @@
use crate::utils::get_feed;
use anyhow::Result;
+ /* Disable tests that need network connection
#[test]
fn test_update_none_to_played_now() -> Result<()> {
truncate_db()?;
@@ -568,6 +569,7 @@
assert_eq!(eps_num2, 0);
Ok(())
}
+ */
#[test]
fn test_episode_exists() -> Result<()> {
--- a/podcasts-data/src/models/source.rs
+++ b/podcasts-data/src/models/source.rs
@@ -321,6 +321,8 @@
use crate::downloader::client_builder;
use crate::utils::get_feed;
+ /* Disable tests that need a network connection
+
#[test]
fn test_into_feed() -> Result<()> {
truncate_db()?;
@@ -366,4 +368,5 @@
);
Ok(())
}
+ */
}
--- a/podcasts-data/src/pipeline.rs
+++ b/podcasts-data/src/pipeline.rs
@@ -79,6 +79,8 @@
com/feed/podcast",
];
+ /* Disable tests that need a network connectioa
+
#[test]
/// Insert feeds and update/index them.
fn test_pipeline() -> Result<(), DataError> {
@@ -107,4 +109,5 @@
assert_eq!(dbqueries::get_episodes()?.len(), 354);
Ok(())
}
+ */
}
--- a/podcasts-gtk/src/utils.rs
+++ b/podcasts-gtk/src/utils.rs
@@ -468,6 +468,8 @@
};
}
+/* Disable tests that need a network connection
+
#[cfg(test)]
mod tests {
use super::*;
@@ -645,3 +647,4 @@
Ok(())
}
}
+*/
|