diff --git a/.vscode/settings.json b/.vscode/settings.json index 1d194f76d..fc5c66746 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,3 +1,3 @@ { "python.pythonPath": "zulip-api-py3-venv/bin/python3.7" -} \ No newline at end of file +} diff --git a/zulip_bots/zulip_bots/bots/bugzilla/bugzilla.conf b/zulip_bots/zulip_bots/bots/bugzilla/bugzilla.conf index f3e8ac8e0..0dff8efcb 100644 --- a/zulip_bots/zulip_bots/bots/bugzilla/bugzilla.conf +++ b/zulip_bots/zulip_bots/bots/bugzilla/bugzilla.conf @@ -1,3 +1,3 @@ [bugzilla] -site = http://bugs.lemoine.tech -api_key = 2BjH9yZxjhe2ZK81wT2loaOOJ3yUvgbgu4akTsXc +site = https://bugs.site.net +api_key = xxxx diff --git a/zulip_bots/zulip_bots/bots/bugzilla/doc.md b/zulip_bots/zulip_bots/bots/bugzilla/doc.md index 8b83d801d..1b9f08e2b 100644 --- a/zulip_bots/zulip_bots/bots/bugzilla/doc.md +++ b/zulip_bots/zulip_bots/bots/bugzilla/doc.md @@ -5,9 +5,8 @@ This bot allows to update directly Bugzilla from Zulip ## Setup To use Bugzilla Bot, first set up `bugzilla.conf`. `bugzilla.conf` takes 2 options: - - - site (the site like `https://bugs.xxx.net` that includes both the protocol and the domain), and - - api_key (a Bugzilla API key), + - site (the site like `https://bugs.xxx.net` that includes both the protocol and the domain) + - api_key (a Bugzilla API key) ## Usage diff --git a/zulip_bots/zulip_bots/bots/bugzilla/fixtures/test_comment.json b/zulip_bots/zulip_bots/bots/bugzilla/fixtures/test_comment.json index 998ec7550..fe29e01ef 100644 --- a/zulip_bots/zulip_bots/bots/bugzilla/fixtures/test_comment.json +++ b/zulip_bots/zulip_bots/bots/bugzilla/fixtures/test_comment.json @@ -14,4 +14,4 @@ "status": 200, "content-type": "application/json; charset=utf-8" } -} \ No newline at end of file +} diff --git a/zulip_bots/zulip_bots/bots/bugzilla/test_bugzilla.py b/zulip_bots/zulip_bots/bots/bugzilla/test_bugzilla.py index 25892bf0c..6cfb1d028 100644 --- a/zulip_bots/zulip_bots/bots/bugzilla/test_bugzilla.py +++ b/zulip_bots/zulip_bots/bots/bugzilla/test_bugzilla.py @@ -1,5 +1,4 @@ from typing import Any, Dict -from unittest.mock import patch from zulip_bots.test_lib import BotTestCase, DefaultTests