update all tests for renamed issue & comment ids
Renaming everything also means they have new creation-times, since we're now git logging a different file/dir.
This commit is contained in:
parent
64b64efddc
commit
3b64acbf3f
4 changed files with 33 additions and 32 deletions
12
src/issue.rs
12
src/issue.rs
|
|
@ -553,12 +553,12 @@ mod tests {
|
|||
|
||||
#[test]
|
||||
fn read_issue_0() {
|
||||
let issue_dir = std::path::Path::new("test/0000/3943fc5c173fdf41c0a22251593cd476d96e6c9f/");
|
||||
let issue_dir = std::path::Path::new("test/0000/3943fc5c173fdf41c0a22251593cd476/");
|
||||
let issue = Issue::new_from_dir(issue_dir).unwrap();
|
||||
let expected = Issue {
|
||||
id: String::from("3943fc5c173fdf41c0a22251593cd476d96e6c9f"),
|
||||
id: String::from("3943fc5c173fdf41c0a22251593cd476"),
|
||||
author: String::from("Sebastian Kuzminsky <seb@highlab.com>"),
|
||||
creation_time: chrono::DateTime::parse_from_rfc3339("2025-07-03T12:14:26-06:00")
|
||||
creation_time: chrono::DateTime::parse_from_rfc3339("2025-07-23T15:06:31-06:00")
|
||||
.unwrap()
|
||||
.with_timezone(&chrono::Local),
|
||||
done_time: None,
|
||||
|
|
@ -581,12 +581,12 @@ mod tests {
|
|||
|
||||
#[test]
|
||||
fn read_issue_1() {
|
||||
let issue_dir = std::path::Path::new("test/0000/7792b063eef6d33e7da5dc1856750c149ba678c6/");
|
||||
let issue_dir = std::path::Path::new("test/0000/7792b063eef6d33e7da5dc1856750c14/");
|
||||
let issue = Issue::new_from_dir(issue_dir).unwrap();
|
||||
let expected = Issue {
|
||||
id: String::from("7792b063eef6d33e7da5dc1856750c149ba678c6"),
|
||||
id: String::from("7792b063eef6d33e7da5dc1856750c14"),
|
||||
author: String::from("Sebastian Kuzminsky <seb@highlab.com>"),
|
||||
creation_time: chrono::DateTime::parse_from_rfc3339("2025-07-03T12:14:26-06:00")
|
||||
creation_time: chrono::DateTime::parse_from_rfc3339("2025-07-23T15:06:31-06:00")
|
||||
.unwrap()
|
||||
.with_timezone(&chrono::Local),
|
||||
done_time: None,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue