diff --git a/test_time_to_first_response.py b/test_time_to_first_response.py index fa532b2..a8d8b1c 100644 --- a/test_time_to_first_response.py +++ b/test_time_to_first_response.py @@ -75,7 +75,7 @@ def test_measure_time_to_first_response_with_pull_request_comments(self): # Set up the mock GitHub pull request comments mock_pr_comment1 = MagicMock() - mock_pr_comment1.submitted_at = datetime.fromisoformat("2023-01-02T00:00:00Z") # first response + mock_pr_comment1.submitted_at = datetime.fromisoformat("2023-01-02T00:00:00Z") # first response mock_pr_comment2 = MagicMock() mock_pr_comment2.submitted_at = datetime.fromisoformat("2023-01-02T12:00:00Z") mock_issue1.issue.pull_request().reviews.return_value = [mock_pr_comment1, mock_pr_comment2] @@ -98,7 +98,7 @@ def test_measure_time_to_first_response_issue_comment_faster(self): # Set up the mock GitHub issue comment mock_comment1 = MagicMock() - mock_comment1.created_at = datetime.fromisoformat("2023-01-02T00:00:00Z") # first response + mock_comment1.created_at = datetime.fromisoformat("2023-01-02T00:00:00Z") # first response mock_issue1.issue.comments.return_value = [mock_comment1] # Set up the mock GitHub pull request comment @@ -129,7 +129,7 @@ def test_measure_time_to_first_response_pull_request_comment_faster(self): # Set up the mock GitHub pull request comment mock_pr_comment1 = MagicMock() - mock_pr_comment1.submitted_at = datetime.fromisoformat("2023-01-02T00:00:00Z") # first response + mock_pr_comment1.submitted_at = datetime.fromisoformat("2023-01-02T00:00:00Z") # first response mock_issue1.issue.pull_request().reviews.return_value = [mock_pr_comment1] # Call the function @@ -161,7 +161,7 @@ def test_measure_time_to_first_response_ignore_users(self): mock_pr_comment1.submitted_at = datetime.fromisoformat("2023-01-03T00:00:00Z") mock_pr_comment2 = MagicMock() mock_pr_comment2.user.login = "not_ignored_user" - mock_pr_comment2.submitted_at = datetime.fromisoformat("2023-01-04T00:00:00Z") # first response + mock_pr_comment2.submitted_at = datetime.fromisoformat("2023-01-04T00:00:00Z") # first response mock_issue1.issue.pull_request().reviews.return_value = [mock_pr_comment1, mock_pr_comment2] # Call the function