@@ -298,11 +298,15 @@ def test_write_to_markdown_no_issues(self):
298
298
"HIDE_TIME_TO_ANSWER" : "True" ,
299
299
"HIDE_LABEL_METRICS" : "True" ,
300
300
"NON_MENTIONING_LINKS" : "True" ,
301
- "GH_ENTERPRISE_URL" : "https://github.mycompany .com" ,
301
+ "GH_ENTERPRISE_URL" : "https://ghe .com" ,
302
302
},
303
303
)
304
304
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
+ """
306
310
307
311
def test_writes_markdown_file_with_non_hidden_columns_only (self ):
308
312
"""
@@ -314,7 +318,7 @@ def test_writes_markdown_file_with_non_hidden_columns_only(self):
314
318
issues_with_metrics = [
315
319
IssueWithMetrics (
316
320
title = "Issue 1" ,
317
- html_url = "https://github.mycompany .com/user/repo/issues/1" ,
321
+ html_url = "https://ghe .com/user/repo/issues/1" ,
318
322
author = "alice" ,
319
323
created_at = timedelta (days = - 5 ),
320
324
time_to_first_response = timedelta (minutes = 10 ),
@@ -327,7 +331,7 @@ def test_writes_markdown_file_with_non_hidden_columns_only(self):
327
331
),
328
332
IssueWithMetrics (
329
333
title = "Issue 2" ,
330
- html_url = "https://github.mycompany .com/user/repo/issues/2" ,
334
+ html_url = "https://ghe .com/user/repo/issues/2" ,
331
335
author = "bob" ,
332
336
created_at = timedelta (days = - 5 ),
333
337
time_to_first_response = timedelta (minutes = 20 ),
@@ -348,7 +352,7 @@ def test_writes_markdown_file_with_non_hidden_columns_only(self):
348
352
num_issues_opened = 2
349
353
num_issues_closed = 2
350
354
num_mentor_count = 5
351
- ghe = "https://github.mycompany .com"
355
+ ghe = "https://ghe .com"
352
356
353
357
# Call the function
354
358
write_to_markdown (
@@ -384,8 +388,8 @@ def test_writes_markdown_file_with_non_hidden_columns_only(self):
384
388
"| Total number of items created | 2 |\n \n "
385
389
"| Title | URL | Author | Created At |\n "
386
390
"| --- | --- | --- | --- |\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 "
389
393
"_This report was generated with the [Issue Metrics Action](https://github.com/github/issue-metrics)_\n "
390
394
"Search query used to find these items: `repo:user/repo is:issue`\n "
391
395
)
0 commit comments