Switch to pretty_assertions

This commit is contained in:
Dustin J. Mitchell 2021-10-02 01:01:28 +00:00
parent 267288c9e6
commit a143660124
47 changed files with 130 additions and 17 deletions

View file

@ -23,3 +23,4 @@ rusqlite = { version = "0.25", features = ["bundled"] }
[dev-dependencies]
actix-rt = "^1.1.1"
tempfile = "3"
pretty_assertions = "1"

View file

@ -80,6 +80,7 @@ mod test {
use crate::storage::{InMemoryStorage, Storage};
use crate::Server;
use actix_web::{http::StatusCode, test, App};
use pretty_assertions::{assert_eq};
use uuid::Uuid;
#[actix_rt::test]

View file

@ -47,6 +47,7 @@ mod test {
use crate::storage::{InMemoryStorage, Storage};
use crate::Server;
use actix_web::{http::StatusCode, test, App};
use pretty_assertions::{assert_eq};
use uuid::Uuid;
#[actix_rt::test]

View file

@ -65,6 +65,7 @@ async fn main() -> anyhow::Result<()> {
mod test {
use super::*;
use actix_web::{test, App};
use pretty_assertions::{assert_eq};
use taskchampion_sync_server::storage::InMemoryStorage;
#[actix_rt::test]

View file

@ -81,6 +81,7 @@ pub(crate) fn add_version<'a>(
mod test {
use super::*;
use crate::storage::{InMemoryStorage, Storage};
use pretty_assertions::{assert_eq};
#[test]
fn gcv_not_found() -> anyhow::Result<()> {

View file

@ -203,6 +203,7 @@ impl StorageTxn for Txn {
#[cfg(test)]
mod test {
use super::*;
use pretty_assertions::{assert_eq};
use tempfile::TempDir;
#[test]