diff options
| author | Fuwn <[email protected]> | 2021-05-06 00:25:18 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2021-05-06 00:25:18 +0000 |
| commit | 61ee123d6d20a8241f7d457cfd14c49e3e5f0cf0 (patch) | |
| tree | a5287b82ea9a30f10dd88e01bd6442e516a5a597 /src | |
| parent | feat(nix): spice it all up (diff) | |
| download | whirl-61ee123d6d20a8241f7d457cfd14c49e3e5f0cf0.tar.xz whirl-61ee123d6d20a8241f7d457cfd14c49e3e5f0cf0.zip | |
test(db): ignore test that only works in certain cases
Diffstat (limited to 'src')
| -rw-r--r-- | src/db/mod.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/db/mod.rs b/src/db/mod.rs index 2ae0ece..496ec0a 100644 --- a/src/db/mod.rs +++ b/src/db/mod.rs @@ -14,7 +14,10 @@ pub fn establish_connection() -> SqliteConnection { .unwrap_or_else(|_| panic!("error connecting to {}", database_url)) } +/// Only works if you have a valid database already setup! +#[cfg(test)] #[test] +#[ignore] pub fn show_serials() { use crate::db::{models::SerialNumber, schema::serial_numbers::dsl::*}; |