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/unit_tests
Finlay Macklon 616d06d7fe
community: glob multiple patterns when using DirectoryLoader (#22852)
- **Description:** Updated
*community.langchain_community.document_loaders.directory.py* to enable
the use of multiple glob patterns in the `DirectoryLoader` class. Now,
the glob parameter is of type `list[str] | str` and still defaults to
the same value as before. I updated the docstring of the class to
reflect this, and added a unit test to
*community.tests.unit_tests.document_loaders.test_directory.py* named
`test_directory_loader_glob_multiple`. This test also shows an example
of how to use the new functionality.
- ~~Issue:~~**Discussion Thread:**
https://github.com/langchain-ai/langchain/discussions/18559
- **Dependencies:** None
- **Twitter handle:** N/a

- [x] **Add tests and docs**
    - Added test (described above)
    - Updated class docstring

- [x] **Lint and test**

---------

Co-authored-by: isaac hershenson <ihershenson@hmc.edu>
Co-authored-by: Harrison Chase <hw.chase.17@gmail.com>
Co-authored-by: Isaac Francisco <78627776+isahers1@users.noreply.github.com>
3 months ago
..
agent_toolkits community[patch]: import flattening fix (#20110) 6 months ago
agents ci: add testing with Python 3.12 (#22813) 3 months ago
callbacks community[minor]: Add UpstashRatelimitHandler (#21885) 4 months ago
chains community[patch]: Add function response to graph cypher qa chain (#22690) 4 months ago
chat_loaders community[patch]: import flattening fix (#20110) 6 months ago
chat_message_histories community: add KafkaChatMessageHistory (#22216) 3 months ago
chat_models community[minor]: add `ChatSnowflakeCortex` chat model (#21490) 3 months ago
cross_encoders community[patch]: `cross_encoders` flatten namespaces (#20183) 6 months ago
data community[patch]: Adding HEADER to the list of supported locations (#21946) 4 months ago
docstore community[patch]: import flattening fix (#20110) 6 months ago
document_compressors community[minor]: add Volcengine Rerank (#22700) 4 months ago
document_loaders community: glob multiple patterns when using DirectoryLoader (#22852) 3 months ago
document_transformers community: Add MarkdownifyTransformer to langchain_community.document_transformers (#21247) 5 months ago
embeddings community: Add Baichuan Embeddings batch size (#22942) 3 months ago
evaluation langchain[patch],community[patch]: Move unit tests that depend on community to community (#21685) 4 months ago
examples community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 10 months ago
graphs community[minor]: add graph store implementation for apache age (#20582) 5 months ago
imports community[minor]: Adds a vector store for Azure Cosmos DB for NoSQL (#21676) 3 months ago
indexes community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 10 months ago
llms Update ollama.py with optional raw setting. (#21486) 3 months ago
load langchain[patch],community[patch]: Move unit tests that depend on community to community (#21685) 4 months ago
query_constructors multiple: langchain 0.2 in master (#21191) 5 months ago
retrievers community[minor]: Add Zep Cloud components + docs + examples (#21671) 4 months ago
storage community[minor]: Add SQL storage implementation (#22207) 4 months ago
tools community[minor]: add AskNews retriever and AskNews tool (#21581) 4 months ago
utilities community[major], experimental[patch]: Remove Python REPL from community (#22904) 3 months ago
utils community, milvus, pinecone, qdrant, mongo: Broadcast operation failure while using simsimd beyond v3.7.7 (#22271) 4 months ago
vectorstores community[minor]: Adds a vector store for Azure Cosmos DB for NoSQL (#21676) 3 months ago
__init__.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 10 months ago
conftest.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 10 months ago
test_cache.py infra: rm unused # noqa violations (#22049) 4 months ago
test_dependencies.py ci: add testing with Python 3.12 (#22813) 3 months ago
test_document_transformers.py infra: rm unused # noqa violations (#22049) 4 months ago
test_imports.py community[patch]: Fix remaining __inits__ in community (#22037) 4 months ago
test_sql_database.py community[minor]: Add lazy_table_reflection param to SqlDatabase (#18742) 7 months ago
test_sql_database_schema.py multiple: get rid of pyproject extras (#22581) 4 months ago
test_sqlalchemy.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 10 months ago