@@ -75,7 +75,7 @@ def test_measure_time_to_first_response_with_pull_request_comments(self):
75
75
76
76
# Set up the mock GitHub pull request comments
77
77
mock_pr_comment1 = MagicMock ()
78
- mock_pr_comment1 .submitted_at = datetime .fromisoformat ("2023-01-02T00:00:00Z" ) # first response
78
+ mock_pr_comment1 .submitted_at = datetime .fromisoformat ("2023-01-02T00:00:00Z" ) # first response
79
79
mock_pr_comment2 = MagicMock ()
80
80
mock_pr_comment2 .submitted_at = datetime .fromisoformat ("2023-01-02T12:00:00Z" )
81
81
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):
98
98
99
99
# Set up the mock GitHub issue comment
100
100
mock_comment1 = MagicMock ()
101
- mock_comment1 .created_at = datetime .fromisoformat ("2023-01-02T00:00:00Z" ) # first response
101
+ mock_comment1 .created_at = datetime .fromisoformat ("2023-01-02T00:00:00Z" ) # first response
102
102
mock_issue1 .issue .comments .return_value = [mock_comment1 ]
103
103
104
104
# Set up the mock GitHub pull request comment
@@ -129,7 +129,7 @@ def test_measure_time_to_first_response_pull_request_comment_faster(self):
129
129
130
130
# Set up the mock GitHub pull request comment
131
131
mock_pr_comment1 = MagicMock ()
132
- mock_pr_comment1 .submitted_at = datetime .fromisoformat ("2023-01-02T00:00:00Z" ) # first response
132
+ mock_pr_comment1 .submitted_at = datetime .fromisoformat ("2023-01-02T00:00:00Z" ) # first response
133
133
mock_issue1 .issue .pull_request ().reviews .return_value = [mock_pr_comment1 ]
134
134
135
135
# Call the function
@@ -161,7 +161,7 @@ def test_measure_time_to_first_response_ignore_users(self):
161
161
mock_pr_comment1 .submitted_at = datetime .fromisoformat ("2023-01-03T00:00:00Z" )
162
162
mock_pr_comment2 = MagicMock ()
163
163
mock_pr_comment2 .user .login = "not_ignored_user"
164
- mock_pr_comment2 .submitted_at = datetime .fromisoformat ("2023-01-04T00:00:00Z" ) # first response
164
+ mock_pr_comment2 .submitted_at = datetime .fromisoformat ("2023-01-04T00:00:00Z" ) # first response
165
165
mock_issue1 .issue .pull_request ().reviews .return_value = [mock_pr_comment1 , mock_pr_comment2 ]
166
166
167
167
# Call the function
0 commit comments