8000 Skipping Slack test if env not setup (#2073) · Fertlas/botbuilder-python@184a2da · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 184a2da

Browse files
tracyboehrerTracy Boehrer
and
Tracy Boehrer
authored
Skipping Slack test if env not setup (microsoft#2073)
Co-authored-by: Tracy Boehrer <trboehre@microsoft.com>
1 parent 525a79c commit 184a2da

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/functional-tests/tests/test_slack_client.py renamed to libraries/botbuilder-adapters-slack/tests/test_slack_client.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,13 @@
1010
import time
1111
import aiounittest
1212
import requests
13+
import pytest
14+
15+
SKIP = os.getenv("SlackChannel") == ''
1316

1417

1518
class SlackClient(aiounittest.AsyncTestCase):
19+
@pytest.mark.skipif(not SKIP, reason="Needs the env.SlackChannel to run.")
1620
async def test_send_and_receive_slack_message(self):
1721
# Arrange
1822
echo_guid = str(uuid.uuid4())

0 commit comments

Comments
 (0)
0