mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-08 06:23:20 +00:00
Confluence added (#6432)
Adding Confluence to Jira tool. Can create a page in Confluence with this PR. If accepted, will extend functionality to Bitbucket and additional Confluence features. --------- Co-authored-by: Ethan Bowen <ethan.bowen@slalom.com>
This commit is contained in:
@@ -27,3 +27,17 @@ def test_create_ticket() -> None:
|
||||
output = jira.run("create_issue", issue_string)
|
||||
assert "id" in output
|
||||
assert "key" in output
|
||||
|
||||
|
||||
def test_create_confluence_page() -> None:
|
||||
"""Test for getting projects on JIRA"""
|
||||
jira = JiraAPIWrapper()
|
||||
create_page_dict = (
|
||||
'{"space": "ROC", "title":"This is the title",'
|
||||
'"body":"This is the body. You can use '
|
||||
'<strong>HTML tags</strong>!"}'
|
||||
)
|
||||
|
||||
output = jira.run("create_page", create_page_dict)
|
||||
assert "type" in output
|
||||
assert "page" in output
|
||||
|
Reference in New Issue
Block a user