pretty assert

This commit is contained in:
veeso
2021-05-06 21:57:04 +02:00
parent c0eb98c3f9
commit 892be42988
33 changed files with 101 additions and 1 deletions

View File

@@ -372,6 +372,8 @@ impl BookmarksClient {
mod tests {
use super::*;
use pretty_assertions::assert_eq;
use std::thread::sleep;
use std::time::Duration;

View File

@@ -381,6 +381,7 @@ mod tests {
use crate::config::UserConfig;
use crate::utils::random::random_alphanumeric_with_len;
use pretty_assertions::assert_eq;
use std::io::Read;
#[test]

View File

@@ -92,6 +92,7 @@ mod tests {
use super::*;
use pretty_assertions::assert_eq;
use std::fs::{File, OpenOptions};
use std::io::Write;

View File

@@ -125,6 +125,8 @@ mod tests {
use super::*;
use pretty_assertions::assert_eq;
#[test]
fn test_system_keys_filestorage_make_dir() {
let storage: FileStorage = FileStorage::new(&Path::new("/tmp/"));

View File

@@ -104,6 +104,7 @@ mod tests {
extern crate whoami;
use super::*;
use pretty_assertions::assert_eq;
use whoami::username;
#[test]

View File

@@ -78,6 +78,8 @@ mod tests {
use super::*;
use pretty_assertions::assert_eq;
#[test]
fn test_system_keys_mod_errors() {
assert_eq!(

View File

@@ -88,8 +88,9 @@ impl SshKeyStorage {
mod tests {
use super::*;
use crate::system::config_client::ConfigClient;
use pretty_assertions::assert_eq;
use std::path::Path;
#[test]