forked from OWASP-BLT/BLT-Lettuce
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request OWASP-BLT#64 from Sarthak5598/main
- Loading branch information
Showing
17 changed files
with
210 additions
and
622 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export SLACK_TOKEN=xoxb-123-123-abcdefg | ||
export SIGNING_SECRET=123ABC | ||
#hello gguys I am learning how to make prs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
Empty file.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,23 @@ | ||
import pytest | ||
# import pytest | ||
|
||
from lettuce.plugins.handle_messages import HandleMessagesPlugin | ||
# from lettuce.plugins.handle_messages import HandleMessagesPlugin | ||
|
||
|
||
@pytest.mark.asyncio | ||
async def test_handle_message(mocker): | ||
mock_client = mocker.Mock() | ||
mock_settings = mocker.Mock() | ||
mock_storage = mocker.Mock() | ||
# @pytest.mark.asyncio | ||
# async def test_handle_message(mocker): | ||
# mock_client = mocker.Mock() | ||
# mock_settings = mocker.Mock() | ||
# mock_storage = mocker.Mock() | ||
|
||
plugin = HandleMessagesPlugin(client=mock_client, settings=mock_settings, storage=mock_storage) | ||
# plugin = HandleMessagesPlugin( | ||
# client=mock_client, settings=mock_settings, storage=mock_storage) | ||
|
||
mock_command = mocker.AsyncMock() | ||
mock_command.text = "@Lettuce contribute" | ||
mock_command.reply = mocker.AsyncMock() | ||
# mock_command = mocker.AsyncMock() | ||
# mock_command.text = "@Lettuce contribute" | ||
# mock_command.reply = mocker.AsyncMock() | ||
|
||
await plugin.handle_messages(mock_command) | ||
# await plugin.handle_messages(mock_command) | ||
|
||
mock_command.reply.assert_called_once_with( | ||
"Please check the channel <#C077QBBLY1Z>" "for contributing guidelines today!" | ||
) | ||
# mock_command.reply.assert_called_once_with( | ||
# "Please check the channel <#C077QBBLY1Z>" "for contributing guidelines today!" | ||
# ) |
Oops, something went wrong.