Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add check for existing issues #26

Merged
merged 3 commits into from
Jan 29, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixing isort
chrheg committed Jan 27, 2024

Verified

This commit was signed with the committer’s verified signature.
chrheg Christian Heggland
commit 0dd46d1e4adcfab060662dcee4b5ffb14ca0a3ec
2 changes: 2 additions & 0 deletions .github/linters/.isort.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[isort]
profile = black
4 changes: 2 additions & 2 deletions evergreen.py
Original file line number Diff line number Diff line change
@@ -2,10 +2,10 @@

import uuid

import auth
import env
import github3
import requests
import auth
import env
from dependabot_file import build_dependabot_file


6 changes: 4 additions & 2 deletions test_evergreen.py
Original file line number Diff line number Diff line change
@@ -251,12 +251,13 @@ def test_check_pending_pulls_for_duplicates_with_duplicates(self):
# Assert that the function returned the expected result
self.assertEqual(result, True)


class TestCheckPendingIssuesForDuplicates(unittest.TestCase):
"""Test the check_pending_Issues_for_duplicates function."""

def test_check_pending_issues_for_duplicates_no_duplicates(self):
"""Test the check_pending_Issues_for_duplicates function where there are no duplicates to be found."""
mock_issue = MagicMock()
mock_issue = MagicMock()
mock_issue.title = "Other Issue"
mock_issue.issues.return_value = [mock_issue]

@@ -269,7 +270,7 @@ def test_check_pending_issues_for_duplicates_no_duplicates(self):

def test_check_pending_issues_for_duplicates_with_duplicates(self):
"""Test the check_pending_issues_for_duplicates function where there are duplicates to be found."""
mock_issue = MagicMock()
mock_issue = MagicMock()
mock_issue.title = "Enable Dependabot"
mock_issue.issues.return_value = [mock_issue]

@@ -280,6 +281,7 @@ def test_check_pending_issues_for_duplicates_with_duplicates(self):
# Assert that the function returned the expected result
self.assertEqual(result, True)


class TestGetReposIterator(unittest.TestCase):
"""Test the get_repos_iterator function in evergreen.py"""