Check if supported (test)

This commit is contained in:
ChristianVisintin
2021-01-16 16:07:53 +01:00
parent 0e4caaecfd
commit 0192b86422
2 changed files with 3 additions and 0 deletions

View File

@@ -137,6 +137,8 @@ mod tests {
let key_dir: tempfile::TempDir =
tempfile::TempDir::new().expect("Could not create tempdir");
let storage: FileStorage = FileStorage::new(key_dir.path());
// Supported
assert!(storage.is_supported());
let app_name: &str = "termscp";
let secret: &str = "Th15-15/My-Супер-Секрет";
// Secret should not exist

View File

@@ -113,6 +113,7 @@ mod tests {
fn test_system_keys_keyringstorage() {
let username: String = username();
let storage: KeyringStorage = KeyringStorage::new(username.as_str());
assert!(storage.is_supported());
let app_name: &str = "termscp";
let secret: &str = "Th15-15/My-Супер-Секрет";
let kring: Keyring = Keyring::new(app_name, username.as_str());