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

@@ -20,6 +20,7 @@ pub(crate) fn execute<W: WriteColor>(
mod test {
use super::*;
use crate::invocation::test::*;
use pretty_assertions::assert_eq;
#[test]
fn test_add() {

View File

@@ -34,6 +34,7 @@ pub(crate) fn execute<W: WriteColor>(
mod test {
use super::*;
use crate::invocation::test::*;
use pretty_assertions::assert_eq;
use std::fs;
use tempfile::TempDir;

View File

@@ -12,6 +12,7 @@ pub(crate) fn execute<W: WriteColor>(w: &mut W, replica: &mut Replica) -> Result
mod test {
use super::*;
use crate::invocation::test::*;
use pretty_assertions::assert_eq;
#[test]
fn test_gc() {

View File

@@ -50,6 +50,7 @@ pub(crate) fn execute<W: WriteColor>(
mod test {
use super::*;
use crate::invocation::test::*;
use taskchampion::Status;
#[test]

View File

@@ -71,6 +71,7 @@ mod test {
use crate::argparse::DescriptionMod;
use crate::invocation::test::test_replica;
use crate::invocation::test::*;
use pretty_assertions::assert_eq;
use taskchampion::Status;
#[test]

View File

@@ -19,6 +19,7 @@ mod test {
use super::*;
use crate::argparse::Filter;
use crate::invocation::test::*;
use taskchampion::Status;
#[test]

View File

@@ -15,6 +15,7 @@ pub(crate) fn execute<W: WriteColor>(
mod test {
use super::*;
use crate::invocation::test::*;
use pretty_assertions::assert_eq;
use tempfile::TempDir;
#[test]

View File

@@ -172,6 +172,7 @@ pub(super) fn filtered_tasks(
mod test {
use super::*;
use crate::invocation::test::*;
use pretty_assertions::assert_eq;
use taskchampion::Status;
#[test]

View File

@@ -133,6 +133,7 @@ mod test {
use crate::invocation::test::*;
use crate::settings::Sort;
use chrono::prelude::*;
use pretty_assertions::assert_eq;
use std::convert::TryInto;
use taskchampion::{Status, Uuid};