Skip to content

Commit

Permalink
feat: Updated libs/langchain/tests/integration_tes
Browse files Browse the repository at this point in the history
  • Loading branch information
sweep-ai[bot] authored Jan 24, 2024
1 parent e9ca64b commit d4e329c
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@


@pytest.fixture
def api_client(api_token: str = None, repository: str = None) -> GitHubAPIWrapper:
def api_client(api_token: str = None, repository: str = 'owner/repo') -> GitHubAPIWrapper:

Check failure on line 16 in libs/langchain/tests/integration_tests/utilities/test_github.py

View workflow job for this annotation

GitHub Actions / lint / build (3.8)

Ruff (E501)

tests/integration_tests/utilities/test_github.py:16:89: E501 Line too long (90 > 88)

Check failure on line 16 in libs/langchain/tests/integration_tests/utilities/test_github.py

View workflow job for this annotation

GitHub Actions / lint / build (3.11)

Ruff (E501)

tests/integration_tests/utilities/test_github.py:16:89: E501 Line too long (90 > 88)
return GitHubAPIWrapper()


def test_get_open_issues(api_client: GitHubAPIWrapper) -> None:
"""Basic test to fetch issues"""
"""Test to fetch open issues when the repository does not exist"""
issues = api_client.get_issues(filter='all', repository='nonexistent/repo')
assert len(issues) == 0
issues = api_client.get_issues(filter='all')
assert len(issues) != 0

0 comments on commit d4e329c

Please sign in to comment.