Skip to content

Commit 5477ea4

Browse files
committed
style: fix linting issues in ghe-author-link feature
1 parent d746775 commit 5477ea4

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

test_markdown_writer.py

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -298,11 +298,15 @@ def test_write_to_markdown_no_issues(self):
298298
"HIDE_TIME_TO_ANSWER": "True",
299299
"HIDE_LABEL_METRICS": "True",
300300
"NON_MENTIONING_LINKS": "True",
301-
"GH_ENTERPRISE_URL": "https://github.mycompany.com",
301+
"GH_ENTERPRISE_URL": "https://ghe.com",
302302
},
303303
)
304304
class TestWriteToMarkdownWithEnv(unittest.TestCase):
305-
"""Test the write_to_markdown function with the HIDE*, NON_MENTIONING_LINKS and GH_ENTERPRISE_URL environment variables set."""
305+
"""Test the write_to_markdown function with the following environment variables set:
306+
- HIDE*,
307+
- NON_MENTIONING_LINKS
308+
- GH_ENTERPRISE_URL
309+
"""
306310

307311
def test_writes_markdown_file_with_non_hidden_columns_only(self):
308312
"""
@@ -314,7 +318,7 @@ def test_writes_markdown_file_with_non_hidden_columns_only(self):
314318
issues_with_metrics = [
315319
IssueWithMetrics(
316320
title="Issue 1",
317-
html_url="https://github.mycompany.com/user/repo/issues/1",
321+
html_url="https://ghe.com/user/repo/issues/1",
318322
author="alice",
319323
created_at=timedelta(days=-5),
320324
time_to_first_response=timedelta(minutes=10),
@@ -327,7 +331,7 @@ def test_writes_markdown_file_with_non_hidden_columns_only(self):
327331
),
328332
IssueWithMetrics(
329333
title="Issue 2",
330-
html_url="https://github.mycompany.com/user/repo/issues/2",
334+
html_url="https://ghe.com/user/repo/issues/2",
331335
author="bob",
332336
created_at=timedelta(days=-5),
333337
time_to_first_response=timedelta(minutes=20),
@@ -348,7 +352,7 @@ def test_writes_markdown_file_with_non_hidden_columns_only(self):
348352
num_issues_opened = 2
349353
num_issues_closed = 2
350354
num_mentor_count = 5
351-
ghe = "https://github.mycompany.com"
355+
ghe = "https://ghe.com"
352356

353357
# Call the function
354358
write_to_markdown(
@@ -384,8 +388,8 @@ def test_writes_markdown_file_with_non_hidden_columns_only(self):
384388
"| Total number of items created | 2 |\n\n"
385389
"| Title | URL | Author | Created At |\n"
386390
"| --- | --- | --- | --- |\n"
387-
"| Issue 1 | https://www.github.mycompany.com/user/repo/issues/1 | [alice](https://github.mycompany.com/alice) | -5 days, 0:00:00 |\n"
388-
"| Issue 2 | https://www.github.mycompany.com/user/repo/issues/2 | [bob](https://github.mycompany.com/bob) | -5 days, 0:00:00 |\n\n"
391+
"| Issue 1 | https://www.ghe.com/user/repo/issues/1 | [alice](https://ghe.com/alice) | -5 days, 0:00:00 |\n"
392+
"| Issue 2 | https://www.ghe.com/user/repo/issues/2 | [bob](https://ghe.com/bob) | -5 days, 0:00:00 |\n\n"
389393
"_This report was generated with the [Issue Metrics Action](https://github.com/github/issue-metrics)_\n"
390394
"Search query used to find these items: `repo:user/repo is:issue`\n"
391395
)

0 commit comments

Comments
 (0)