mirror of
https://github.com/veeso/termscp.git
synced 2026-09-25 13:31:26 -07:00
fix: unused import isolated tests
This commit is contained in:
@@ -76,14 +76,14 @@ impl KeyStorage for KeyringStorage {
|
|||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
use pretty_assertions::assert_eq;
|
|
||||||
use whoami::username;
|
|
||||||
|
|
||||||
use super::*;
|
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[cfg(not(feature = "isolated-tests"))]
|
#[cfg(not(feature = "isolated-tests"))]
|
||||||
fn test_system_keys_keyringstorage() {
|
fn test_system_keys_keyringstorage() {
|
||||||
|
use pretty_assertions::assert_eq;
|
||||||
|
use whoami::username;
|
||||||
|
|
||||||
|
use super::*;
|
||||||
|
|
||||||
let username: String = username();
|
let username: String = username();
|
||||||
let storage: KeyringStorage = KeyringStorage::new(username.as_str());
|
let storage: KeyringStorage = KeyringStorage::new(username.as_str());
|
||||||
assert!(storage.is_supported());
|
assert!(storage.is_supported());
|
||||||
|
|||||||
Reference in New Issue
Block a user