mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 04:53:36 +00:00
webhook: Rename FIXTURE_DIR_NAME to WEBHOOK_DIR_NAME.
Since FIXTURE_DIR_NAME is the name of the folder that contains the view and tests modules of the webhook and another folder called "fixtures" that store the fixtures, it is more appropriate to call it WEBHOOK_DIR_NAME, especially when we want to refer to the view module using this variable.
This commit is contained in:
@@ -7,7 +7,7 @@ from zerver.lib.webhooks.git import COMMITS_LIMIT
|
||||
class GogsHookTests(WebhookTestCase):
|
||||
STREAM_NAME = "commits"
|
||||
URL_TEMPLATE = "/api/v1/external/gogs?&api_key={api_key}&stream={stream}"
|
||||
FIXTURE_DIR_NAME = "gogs"
|
||||
WEBHOOK_DIR_NAME = "gogs"
|
||||
|
||||
def test_push(self) -> None:
|
||||
expected_topic = "try-git / master"
|
||||
|
||||
Reference in New Issue
Block a user