Skip to content

Commit

Permalink
feat: added some races integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
thibault-cne committed Apr 18, 2024
1 parent 849981b commit bee4492
Show file tree
Hide file tree
Showing 3 changed files with 1,117 additions and 16 deletions.
8 changes: 8 additions & 0 deletions bin/api/tests/common/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,11 @@ where
{
client.get(uri).dispatch()
}

pub fn parse_date(date: &str) -> chrono::NaiveDate {
chrono::NaiveDate::parse_from_str(date, "%Y-%m-%d").unwrap()
}

pub fn parse_time(time: &str) -> chrono::NaiveTime {
chrono::NaiveTime::parse_from_str(time, "%H:%M:%S").unwrap()
}
Loading

0 comments on commit bee4492

Please sign in to comment.