Skip to content

Commit

Permalink
style: fix lint error
Browse files Browse the repository at this point in the history
fix `E261 at least two spaces before inline comment`
  • Loading branch information
eichisanden committed Aug 16, 2023
1 parent 5f26031 commit 5f6055c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test_time_to_first_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 5f6055c

Please sign in to comment.