mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-17 07:26:16 +00:00
community: support Confluence cookies (#28760)
**Description**: Some confluence instances don't support personal access token, then cookie is a convenient way to authenticate. This PR adds support for Confluence cookies. **Twitter handle**: soulmachine
This commit is contained in:
@@ -68,6 +68,16 @@ class TestConfluenceLoader:
|
||||
session=requests.Session(),
|
||||
)
|
||||
|
||||
with pytest.raises(ValueError):
|
||||
ConfluenceLoader(
|
||||
self.CONFLUENCE_URL,
|
||||
username=self.MOCK_USERNAME,
|
||||
api_key=self.MOCK_API_TOKEN,
|
||||
cookies={
|
||||
"key": "value",
|
||||
},
|
||||
)
|
||||
|
||||
def test_confluence_loader_initialization_from_env(
|
||||
self, mock_confluence: MagicMock
|
||||
) -> None:
|
||||
|
Reference in New Issue
Block a user