You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
langchain/libs/community/tests/integration_tests/utilities
Chris f9f5626ca4
community[patch]: Fix github search issues and PRs PaginatedList has no len() error (#16806)
**Description:** 
Bugfix: Langchain_community's GitHub Api wrapper throws a TypeError when
searching for issues and/or PRs (the `search_issues_and_prs` method).
This is because PyGithub's PageinatedList type does not support the
len() method. See https://github.com/PyGithub/PyGithub/issues/1476

![image](https://github.com/langchain-ai/langchain/assets/8849021/57390b11-ed41-4f48-ba50-f3028610789c)
  **Dependencies:** None 
  **Twitter handle**: @ChrisKeoghNZ
  
I haven't registered an issue as it would take me longer to fill the
template out than to make the fix, but I'm happy to if that's deemed
essential.

I've added a simple integration test to cover this as there were no
existing unit tests and it was going to be tricky to set them up.

Co-authored-by: Chris Keogh <chris.keogh@xero.com>
7 months ago
..
__init__.py
test_arxiv.py infra: add print rule to ruff (#16221) 7 months ago
test_bing_search.py
test_clickup.py
test_dataforseo_api.py
test_duckduckdgo_search_api.py infra: add print rule to ruff (#16221) 7 months ago
test_github.py community[patch]: Fix github search issues and PRs PaginatedList has no len() error (#16806) 7 months ago
test_golden_query_api.py
test_google_trends.py infra: add -p to mkdir in lint steps (#17013) 8 months ago
test_googlesearch_api.py infra: add print rule to ruff (#16221) 7 months ago
test_googleserper_api.py
test_jira_api.py
test_merriam_webster_api.py
test_nasa.py
test_openweathermap.py
test_outline.py
test_polygon.py
test_portkey.py
test_powerbi_api.py infra: add print rule to ruff (#16221) 7 months ago
test_pubmed.py
test_reddit_search_api.py
test_searchapi.py
test_serpapi.py
test_stackexchange.py
test_steam_api.py
test_tensorflow_datasets.py
test_twilio.py
test_wikipedia_api.py
test_wolfram_alpha_api.py