Skip to content

Commit

Permalink
fixing isort
Browse files Browse the repository at this point in the history
  • Loading branch information
chrheg committed Jan 27, 2024
1 parent a8455a1 commit 0dd46d1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
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
Expand Up @@ -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


Expand Down
6 changes: 4 additions & 2 deletions test_evergreen.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand All @@ -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]

Expand All @@ -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"""

Expand Down

0 comments on commit 0dd46d1

Please sign in to comment.