repo_id string | cross_repo_split string | commit_index int32 | commit_sha string | in_repo_split string | test_file string | file_split string | split_group string | lineno int32 | col_offset int32 | assertion_type string | test_function string | prefix large_string | target string | assertion_event_type string | assertion_event_id string | assertion_anchor large_string | old_target string | old_lineno int32 | old_col_offset int32 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
wee-slack/wee-slack | train | 14 | 32d63857a0f7f00fc462f9069e32f22d803985fe | train | _pytest/test_linkifytext.py | train | wee-slack/wee-slack:_pytest/test_linkifytext.py | 68 | 4 | assert | test_linkifytext_at_channel | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from wee_slack import linkify_text
#def test_linkifytext():
# linkify_text('@ryan')
# assert False
def test_linkifytext_does_partial_html_entity_encoding(realish_eventrouter):
team = realish_eventrouter.teams.values()[0]
channel = team... | '<!channel>: my test message' | added | 2108aa61e28be7ed4244eac7b9b889471d82d39f3fe11e101bad46295fc1b0f9 | assert|test_linkifytext_at_channel|# -*- coding: utf-8 -*- from __future__ import unicode_literals from wee_slack import linkify_text #def test_linkifytext(): # linkify_text('@ryan') # assert False def test_linkifytext_does_partial_html_entity_encoding(realish_eventrouter): team = realish_eventrouter.teams.values()[0] ... | null | null | null |
wee-slack/wee-slack | train | 14 | 32d63857a0f7f00fc462f9069e32f22d803985fe | train | _pytest/test_linkifytext.py | train | wee-slack/wee-slack:_pytest/test_linkifytext.py | 76 | 4 | assert | test_linkifytext_channel | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from wee_slack import linkify_text
#def test_linkifytext():
# linkify_text('@ryan')
# assert False
def test_linkifytext_does_partial_html_entity_encoding(realish_eventrouter):
team = realish_eventrouter.teams.values()[0]
channel = team... | '<#{}|{}>: my test message'.format(channel.id, channel.name) | added | 7672806ad798de5c47ee603bbde5be4f352300ae50e75bda2ed526996ff473c3 | assert|test_linkifytext_channel|# -*- coding: utf-8 -*- from __future__ import unicode_literals from wee_slack import linkify_text #def test_linkifytext(): # linkify_text('@ryan') # assert False def test_linkifytext_does_partial_html_entity_encoding(realish_eventrouter): team = realish_eventrouter.teams.values()[0] cha... | null | null | null |
wee-slack/wee-slack | train | 15 | ea3ec06598d9fc4dff30f7eb7ffc082ef0d42c49 | train | _pytest/test_linkifytext.py | train | wee-slack/wee-slack:_pytest/test_linkifytext.py | 19 | 4 | assert | test_linkifytext_does_partial_html_entity_encoding | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from wee_slack import linkify_text
#def test_linkifytext():
# linkify_text('@ryan')
# assert False
def test_linkifytext_does_partial_html_entity_encoding(realish_eventrouter):
team = realish_eventrouter.teams.values()[0]
text = linkif... | '& < > \' "' | modified | 937054a31a5162d8a442d1945238c52332f7859723314ee39b6743a049d40699 | assert|test_linkifytext_does_partial_html_entity_encoding|# -*- coding: utf-8 -*- from __future__ import unicode_literals from wee_slack import linkify_text #def test_linkifytext(): # linkify_text('@ryan') # assert False def test_linkifytext_does_partial_html_entity_encoding(realish_eventrouter): team = realish_eventro... | '& < > \' "' | 20 | 4 |
wee-slack/wee-slack | train | 15 | ea3ec06598d9fc4dff30f7eb7ffc082ef0d42c49 | train | _pytest/test_linkifytext.py | train | wee-slack/wee-slack:_pytest/test_linkifytext.py | 26 | 4 | assert | test_linkifytext_names_with_paranthesis | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from wee_slack import linkify_text
#def test_linkifytext():
# linkify_text('@ryan')
# assert False
def test_linkifytext_does_partial_html_entity_encoding(realish_eventrouter):
team = realish_eventrouter.teams.values()[0]
text = linkif... | '@JohnDoe(jdoe): my test message' | added | 0ef9bf035e06b542fcafbf6bf1f43731590ce8927772fa9d5725a10d2838763c | assert|test_linkifytext_names_with_paranthesis|# -*- coding: utf-8 -*- from __future__ import unicode_literals from wee_slack import linkify_text #def test_linkifytext(): # linkify_text('@ryan') # assert False def test_linkifytext_does_partial_html_entity_encoding(realish_eventrouter): team = realish_eventrouter.teams.... | null | null | null |
wee-slack/wee-slack | train | 15 | ea3ec06598d9fc4dff30f7eb7ffc082ef0d42c49 | train | _pytest/test_linkifytext.py | train | wee-slack/wee-slack:_pytest/test_linkifytext.py | 33 | 4 | assert | test_linkifytext_names_with_accents | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from wee_slack import linkify_text
#def test_linkifytext():
# linkify_text('@ryan')
# assert False
def test_linkifytext_does_partial_html_entity_encoding(realish_eventrouter):
team = realish_eventrouter.teams.values()[0]
text = linkif... | '@ÁrvíztűrőTükörfúrógép(atukorfurogep): my test message' | added | 323beb3493e62fc005356a515fa92a6e96123792f806f6ac0e18d48a6d7a4a5a | assert|test_linkifytext_names_with_accents|# -*- coding: utf-8 -*- from __future__ import unicode_literals from wee_slack import linkify_text #def test_linkifytext(): # linkify_text('@ryan') # assert False def test_linkifytext_does_partial_html_entity_encoding(realish_eventrouter): team = realish_eventrouter.teams.valu... | null | null | null |
wee-slack/wee-slack | train | 15 | ea3ec06598d9fc4dff30f7eb7ffc082ef0d42c49 | train | _pytest/test_linkifytext.py | train | wee-slack/wee-slack:_pytest/test_linkifytext.py | 40 | 4 | assert | test_linkifytext_formatting_characters | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from wee_slack import linkify_text
#def test_linkifytext():
# linkify_text('@ryan')
# assert False
def test_linkifytext_does_partial_html_entity_encoding(realish_eventrouter):
team = realish_eventrouter.teams.values()[0]
text = linkif... | '*_my test message_*' | added | 1dcab21ede0fd4c3a2d8904363143bd6b3fe23d917d06f27090512bd96bc5142 | assert|test_linkifytext_formatting_characters|# -*- coding: utf-8 -*- from __future__ import unicode_literals from wee_slack import linkify_text #def test_linkifytext(): # linkify_text('@ryan') # assert False def test_linkifytext_does_partial_html_entity_encoding(realish_eventrouter): team = realish_eventrouter.teams.v... | null | null | null |
wee-slack/wee-slack | train | 16 | 7d919f3897deb322f13428127b1ba91731917f4c | train | _pytest/test_linkifytext.py | train | wee-slack/wee-slack:_pytest/test_linkifytext.py | 65 | 4 | assert | test_linkifytext_names_with_subgroup_notification | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from wee_slack import linkify_text
#def test_linkifytext():
# linkify_text('@ryan')
# assert False
def test_linkifytext_does_partial_html_entity_encoding(realish_eventrouter):
team = realish_eventrouter.teams.values()[0]
text = linkif... | '<!subteam^{}|@{}>: {}'.format(subteam_id, handle, message) | added | cc8e769efc03f88e33e02362b7c81fb728e76c98b3bccdb9cc672f29a56b00c1 | assert|test_linkifytext_names_with_subgroup_notification|# -*- coding: utf-8 -*- from __future__ import unicode_literals from wee_slack import linkify_text #def test_linkifytext(): # linkify_text('@ryan') # assert False def test_linkifytext_does_partial_html_entity_encoding(realish_eventrouter): team = realish_eventrou... | null | null | null |
wee-slack/wee-slack | train | 16 | 7d919f3897deb322f13428127b1ba91731917f4c | train | _pytest/test_linkifytext.py | train | wee-slack/wee-slack:_pytest/test_linkifytext.py | 72 | 4 | assert | test_linkifytext_at_channel | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from wee_slack import linkify_text
#def test_linkifytext():
# linkify_text('@ryan')
# assert False
def test_linkifytext_does_partial_html_entity_encoding(realish_eventrouter):
team = realish_eventrouter.teams.values()[0]
text = linkif... | '<!channel>: my test message' | added | 23854f137e92e33c319276fb65cd194924505bbe45f133643d70b2374ca57e9b | assert|test_linkifytext_at_channel|# -*- coding: utf-8 -*- from __future__ import unicode_literals from wee_slack import linkify_text #def test_linkifytext(): # linkify_text('@ryan') # assert False def test_linkifytext_does_partial_html_entity_encoding(realish_eventrouter): team = realish_eventrouter.teams.values()[0] ... | null | null | null |
wee-slack/wee-slack | train | 16 | 7d919f3897deb322f13428127b1ba91731917f4c | train | _pytest/test_linkifytext.py | train | wee-slack/wee-slack:_pytest/test_linkifytext.py | 80 | 4 | assert | test_linkifytext_channel | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from wee_slack import linkify_text
#def test_linkifytext():
# linkify_text('@ryan')
# assert False
def test_linkifytext_does_partial_html_entity_encoding(realish_eventrouter):
team = realish_eventrouter.teams.values()[0]
text = linkif... | '<#{}|{}>: my test message'.format(channel.id, channel.name) | added | b999ca9beb3c11b5a8ef1eac02a6bfffc4406336c357c3215ca9029c0e457f1f | assert|test_linkifytext_channel|# -*- coding: utf-8 -*- from __future__ import unicode_literals from wee_slack import linkify_text #def test_linkifytext(): # linkify_text('@ryan') # assert False def test_linkifytext_does_partial_html_entity_encoding(realish_eventrouter): team = realish_eventrouter.teams.values()[0] tex... | null | null | null |
wee-slack/wee-slack | train | 16 | 7d919f3897deb322f13428127b1ba91731917f4c | train | _pytest/test_processsubteamupdated.py | train | wee-slack/wee-slack:_pytest/test_processsubteamupdated.py | 26 | 4 | assert | test_process_subteam_self_updated | import glob
from mock import patch, call
from wee_slack import SlackTeam, SlackSubteam
import json
def test_process_subteam_self_updated(mock_websocket, realish_eventrouter):
eventrouter = realish_eventrouter
t = eventrouter.teams.keys()[0]
assert len(eventrouter.teams[t].subteams) == 1
socket = mo... | subteam.handle | added | 6f33566da93f3e49c74c4a19448eecf971cbb85795bf1ad0e52b4998ce830847 | assert|test_process_subteam_self_updated|import glob from mock import patch, call from wee_slack import SlackTeam, SlackSubteam import json def test_process_subteam_self_updated(mock_websocket, realish_eventrouter): eventrouter = realish_eventrouter t = eventrouter.teams.keys()[0] assert len(eventrouter.teams[t].subtea... | null | null | null |
wee-slack/wee-slack | train | 16 | 7d919f3897deb322f13428127b1ba91731917f4c | train | _pytest/test_processsubteamupdated.py | train | wee-slack/wee-slack:_pytest/test_processsubteamupdated.py | 27 | 4 | assert | test_process_subteam_self_updated | import glob
from mock import patch, call
from wee_slack import SlackTeam, SlackSubteam
import json
def test_process_subteam_self_updated(mock_websocket, realish_eventrouter):
eventrouter = realish_eventrouter
t = eventrouter.teams.keys()[0]
assert len(eventrouter.teams[t].subteams) == 1
socket = mo... | subteam.description | added | 65c42878387cd8fad739a641ddd7e0fc0ad822dc9cf01c65af8da7a685d9bb89 | assert|test_process_subteam_self_updated|import glob from mock import patch, call from wee_slack import SlackTeam, SlackSubteam import json def test_process_subteam_self_updated(mock_websocket, realish_eventrouter): eventrouter = realish_eventrouter t = eventrouter.teams.keys()[0] assert len(eventrouter.teams[t].subtea... | null | null | null |
wee-slack/wee-slack | train | 16 | 7d919f3897deb322f13428127b1ba91731917f4c | train | _pytest/test_processsubteamupdated.py | train | wee-slack/wee-slack:_pytest/test_processsubteamupdated.py | 28 | 4 | assert | test_process_subteam_self_updated | import glob
from mock import patch, call
from wee_slack import SlackTeam, SlackSubteam
import json
def test_process_subteam_self_updated(mock_websocket, realish_eventrouter):
eventrouter = realish_eventrouter
t = eventrouter.teams.keys()[0]
assert len(eventrouter.teams[t].subteams) == 1
socket = mo... | subteam.name | added | a9408453bc36d76d8912267f5e07f80a87d3a0d7699e94eb08a1cfba35cb10a0 | assert|test_process_subteam_self_updated|import glob from mock import patch, call from wee_slack import SlackTeam, SlackSubteam import json def test_process_subteam_self_updated(mock_websocket, realish_eventrouter): eventrouter = realish_eventrouter t = eventrouter.teams.keys()[0] assert len(eventrouter.teams[t].subtea... | null | null | null |
wee-slack/wee-slack | train | 16 | 7d919f3897deb322f13428127b1ba91731917f4c | train | _pytest/test_unfurl.py | train | wee-slack/wee-slack:_pytest/test_unfurl.py | 78 | 4 | assert | test_unfurl_refs | import wee_slack
import pytest
slack = wee_slack
@pytest.mark.parametrize('case', (
{
'input': "foo",
'output': "foo",
},
{
'input': "<@U407ABLLW|@othernick>: foo",
'output': "@alice: foo",
'ignore_alt_text': True,
},
{
'input': "foo <#C407ABS94|oth... | case['output'] | added | 7d0ba2c9c68b7c2f1029aa07358dcaa490291a71491f308e2df63df377177f89 | assert|test_unfurl_refs|import wee_slack import pytest slack = wee_slack @pytest.mark.parametrize('case', ( { 'input': "foo", 'output': "foo", }, { 'input': "<@U407ABLLW|@othernick>: foo", 'output': "@alice: foo", 'ignore_alt_text': True, }, { 'input': "foo <#C407ABS94|otherchannel> foo", 'output': "foo #otherchannel f... | null | null | null |
wee-slack/wee-slack | train | 20 | 718721cbc725d3aa3db9fe2d606c81a56615a753 | train | _pytest/test_formatting.py | train | wee-slack/wee-slack:_pytest/test_formatting.py | 16 | 4 | assert | test_does_not_format | from __future__ import print_function, unicode_literals
import pytest
import wee_slack
@pytest.mark.parametrize("text", [
"""
* an item
* another item
""",
"* Run this command: `find . -name '*.exe'`",
])
def test_does_not_format(text):
assert wee_slack.render_formatting(text) == | text | added | 75e64d65280f624ff2001abaf585bb3492d7428570d747d33224110d008c8ebe | assert|test_does_not_format|from __future__ import print_function, unicode_literals import pytest import wee_slack @pytest.mark.parametrize("text", [ """ * an item * another item """, "* Run this command: `find . -name '*.exe'`", ]) def test_does_not_format(text): assert wee_slack.render_formatting(text) == | null | null | null |
wee-slack/wee-slack | train | 20 | 718721cbc725d3aa3db9fe2d606c81a56615a753 | train | _pytest/test_linkifytext.py | train | wee-slack/wee-slack:_pytest/test_linkifytext.py | 40 | 4 | assert | test_linkifytext_formatting_characters | # -*- coding: utf-8 -*-
from __future__ import print_function, unicode_literals
from wee_slack import linkify_text
#def test_linkifytext():
# linkify_text('@ryan')
# assert False
def test_linkifytext_does_partial_html_entity_encoding(realish_eventrouter):
team = realish_eventrouter.teams.values()[0]
... | '*_my test message_*' | modified | 90f810cf3db08be0bc81e55d5b4522133853c6d2080f479a6551cce893ba8362 | assert|test_linkifytext_formatting_characters|# -*- coding: utf-8 -*- from __future__ import print_function, unicode_literals from wee_slack import linkify_text #def test_linkifytext(): # linkify_text('@ryan') # assert False def test_linkifytext_does_partial_html_entity_encoding(realish_eventrouter): team = realish_eve... | '*_my test message_*' | 40 | 4 |
wee-slack/wee-slack | train | 20 | 718721cbc725d3aa3db9fe2d606c81a56615a753 | train | _pytest/test_presencechange.py | train | wee-slack/wee-slack:_pytest/test_presencechange.py | 32 | 4 | assert | test_PresenceChange | from __future__ import print_function, unicode_literals
def test_PresenceChange(realish_eventrouter, mock_websocket):
e = realish_eventrouter
t = e.teams.keys()[0]
u = e.teams[t].users.keys()[0]
user = e.teams[t].users[u]
socket = mock_websocket
e.teams[t].ws = socket
socket.add({
... | "away" | modified | ada7e2b9d4220c8db127e490f78b8a5de2b31c27370aae9a67ffb1e6b9a76bfa | assert|test_PresenceChange|from __future__ import print_function, unicode_literals def test_PresenceChange(realish_eventrouter, mock_websocket): e = realish_eventrouter t = e.teams.keys()[0] u = e.teams[t].users.keys()[0] user = e.teams[t].users[u] socket = mock_websocket e.teams[t].ws = socket socket.add({ "type": "pr... | "away" | 31 | 4 |
wee-slack/wee-slack | train | 20 | 718721cbc725d3aa3db9fe2d606c81a56615a753 | train | _pytest/test_processsubteamupdated.py | train | wee-slack/wee-slack:_pytest/test_processsubteamupdated.py | 30 | 4 | assert | test_process_subteam_self_updated | from __future__ import print_function, unicode_literals
import glob
from mock import patch, call
from wee_slack import SlackTeam, SlackSubteam
import json
def test_process_subteam_self_updated(mock_websocket, realish_eventrouter):
eventrouter = realish_eventrouter
t = eventrouter.teams.keys()[0]
assert... | subteam.name | modified | 8d794df63e4a41536081441be4750211be44d22f95fad82b528a9a3b7b5490c2 | assert|test_process_subteam_self_updated|from __future__ import print_function, unicode_literals import glob from mock import patch, call from wee_slack import SlackTeam, SlackSubteam import json def test_process_subteam_self_updated(mock_websocket, realish_eventrouter): eventrouter = realish_eventrouter t = eventroute... | subteam.name | 28 | 4 |
wee-slack/wee-slack | train | 20 | 718721cbc725d3aa3db9fe2d606c81a56615a753 | train | _pytest/test_slackts.py | train | wee-slack/wee-slack:_pytest/test_slackts.py | 25 | 4 | assert | test_slackts | from __future__ import print_function, unicode_literals
from wee_slack import SlackTS
def test_slackts():
base = SlackTS("1485976156.000017")
b = SlackTS("1485976156.000016")
c = SlackTS("1485976156.000018")
d = SlackTS("1485976155.000017")
e = SlackTS("1485976157.000017")
assert base > b
... | "1485976156.000016" | added | 79ea5e07ba3e438b21dbeafa9d540cd26844867041170368d68878ae76d46f50 | assert|test_slackts|from __future__ import print_function, unicode_literals from wee_slack import SlackTS def test_slackts(): base = SlackTS("1485976156.000017") b = SlackTS("1485976156.000016") c = SlackTS("1485976156.000018") d = SlackTS("1485976155.000017") e = SlackTS("1485976157.000017") assert base > b assert bas... | null | null | null |
wee-slack/wee-slack | train | 20 | 718721cbc725d3aa3db9fe2d606c81a56615a753 | train | _pytest/test_topic_command.py | train | wee-slack/wee-slack:_pytest/test_topic_command.py | 12 | 4 | assert | test_parse_topic_without_arguments | from __future__ import print_function, unicode_literals
import wee_slack
from wee_slack import parse_topic_command, topic_command_cb
from mock import patch
def test_parse_topic_without_arguments():
channel_name, topic = parse_topic_command('/topic')
assert channel_name is None
assert topic is | None | added | 3874e1aa128d3e293b8fdd47eddefb5e4bf8acd10973e5ad65295ff585c22bf8 | assert|test_parse_topic_without_arguments|from __future__ import print_function, unicode_literals import wee_slack from wee_slack import parse_topic_command, topic_command_cb from mock import patch def test_parse_topic_without_arguments(): channel_name, topic = parse_topic_command('/topic') assert channel_name is None ... | null | null | null |
wee-slack/wee-slack | train | 20 | 718721cbc725d3aa3db9fe2d606c81a56615a753 | train | _pytest/test_unfurl.py | train | wee-slack/wee-slack:_pytest/test_unfurl.py | 80 | 4 | assert | test_unfurl_refs | from __future__ import print_function, unicode_literals
import wee_slack
import pytest
slack = wee_slack
@pytest.mark.parametrize('case', (
{
'input': "foo",
'output': "foo",
},
{
'input': "<@U407ABLLW|@othernick>: foo",
'output': "@alice: foo",
'ignore_alt_text':... | case['output'] | modified | 6bb7db094bea8b0ad45bfc6a35b254bafe1a274f8c5767bc4350a688e8558d35 | assert|test_unfurl_refs|from __future__ import print_function, unicode_literals import wee_slack import pytest slack = wee_slack @pytest.mark.parametrize('case', ( { 'input': "foo", 'output': "foo", }, { 'input': "<@U407ABLLW|@othernick>: foo", 'output': "@alice: foo", 'ignore_alt_text': True, }, { 'input': "foo <#C407... | case['output'] | 78 | 4 |
wee-slack/wee-slack | train | 20 | 718721cbc725d3aa3db9fe2d606c81a56615a753 | train | _pytest/test_unwrap_attachments.py | test | wee-slack/wee-slack:_pytest/test_unwrap_attachments.py | 167 | 4 | assert | test_unwrap_attachments | from __future__ import print_function, unicode_literals
import wee_slack
import pytest
@pytest.mark.parametrize('case', (
{
'input_message': {'attachments': [{
'title': 'Title',
}]},
'input_text_before': "Text before",
'output': "\n".join([
"",
... | case['output'] | modified | 15532587dbb3d8664ae72c2d551cd61fb910b81c062addbbcc0609f5e4693b96 | assert|test_unwrap_attachments|from __future__ import print_function, unicode_literals import wee_slack import pytest @pytest.mark.parametrize('case', ( { 'input_message': {'attachments': [{ 'title': 'Title', }]}, 'input_text_before': "Text before", 'output': "\n".join([ "", "Title", ]), }, { 'input_message': {'attachm... | case['output'] | 165 | 4 |
wee-slack/wee-slack | train | 21 | 2bdbd719a796777e72627281c163bf51b6d03114 | train | _pytest/test_utf8_helpers.py | train | wee-slack/wee-slack:_pytest/test_utf8_helpers.py | 18 | 8 | assert | test_decode_should_not_transform_str | # -*- coding: utf-8 -*-
from __future__ import print_function, unicode_literals
import sys
from collections import OrderedDict
from wee_slack import decode_from_utf8, encode_to_utf8, utf8_decode
b_ae = 'æ'.encode('utf-8')
b_oe = 'ø'.encode('utf-8')
b_aa = 'å'.encode('utf-8')
b_word = b_ae + b_oe + b_aa
if sys.ver... | decode_from_utf8('æøå') | added | 3fa041ec55caae871ba4647f5629a395c0373c6afa93758369b1c49421f932fb | assert|test_decode_should_not_transform_str|# -*- coding: utf-8 -*- from __future__ import print_function, unicode_literals import sys from collections import OrderedDict from wee_slack import decode_from_utf8, encode_to_utf8, utf8_decode b_ae = 'æ'.encode('utf-8') b_oe = 'ø'.encode('utf-8') b_aa = 'å'.encode('utf-8') ... | null | null | null |
wee-slack/wee-slack | train | 21 | 2bdbd719a796777e72627281c163bf51b6d03114 | train | _pytest/test_utf8_helpers.py | train | wee-slack/wee-slack:_pytest/test_utf8_helpers.py | 21 | 8 | assert | test_decode_should_not_transform_bytes | # -*- coding: utf-8 -*-
from __future__ import print_function, unicode_literals
import sys
from collections import OrderedDict
from wee_slack import decode_from_utf8, encode_to_utf8, utf8_decode
b_ae = 'æ'.encode('utf-8')
b_oe = 'ø'.encode('utf-8')
b_aa = 'å'.encode('utf-8')
b_word = b_ae + b_oe + b_aa
if sys.ver... | decode_from_utf8(b_word) | added | 7df42f88f98e129eb1c5f983bbdc049c141c01874705f5a0872f1fa122ebe5c2 | assert|test_decode_should_not_transform_bytes|# -*- coding: utf-8 -*- from __future__ import print_function, unicode_literals import sys from collections import OrderedDict from wee_slack import decode_from_utf8, encode_to_utf8, utf8_decode b_ae = 'æ'.encode('utf-8') b_oe = 'ø'.encode('utf-8') b_aa = 'å'.encode('utf-8'... | null | null | null |
wee-slack/wee-slack | train | 21 | 2bdbd719a796777e72627281c163bf51b6d03114 | train | _pytest/test_utf8_helpers.py | train | wee-slack/wee-slack:_pytest/test_utf8_helpers.py | 46 | 8 | assert | test_decode_preserves_iterable_type | # -*- coding: utf-8 -*-
from __future__ import print_function, unicode_literals
import sys
from collections import OrderedDict
from wee_slack import decode_from_utf8, encode_to_utf8, utf8_decode
b_ae = 'æ'.encode('utf-8')
b_oe = 'ø'.encode('utf-8')
b_aa = 'å'.encode('utf-8')
b_word = b_ae + b_oe + b_aa
if sys.ver... | type(decode_from_utf8(value_tuple)) | added | 7d8064802b90d36ab3191425c8434f854a2c69ef6e79e543ae084171b8293cdd | assert|test_decode_preserves_iterable_type|# -*- coding: utf-8 -*- from __future__ import print_function, unicode_literals import sys from collections import OrderedDict from wee_slack import decode_from_utf8, encode_to_utf8, utf8_decode b_ae = 'æ'.encode('utf-8') b_oe = 'ø'.encode('utf-8') b_aa = 'å'.encode('utf-8') b... | null | null | null |
wee-slack/wee-slack | train | 21 | 2bdbd719a796777e72627281c163bf51b6d03114 | train | _pytest/test_utf8_helpers.py | train | wee-slack/wee-slack:_pytest/test_utf8_helpers.py | 58 | 8 | assert | test_encode_preserves_string_without_utf8 | # -*- coding: utf-8 -*-
from __future__ import print_function, unicode_literals
import sys
from collections import OrderedDict
from wee_slack import decode_from_utf8, encode_to_utf8, utf8_decode
b_ae = 'æ'.encode('utf-8')
b_oe = 'ø'.encode('utf-8')
b_aa = 'å'.encode('utf-8')
b_word = b_ae + b_oe + b_aa
if sys.ver... | encode_to_utf8('test') | added | 2cfb090bbe4d05c5fe88e867e2a87d8fe4570288c466e2ed008271dcaa244078 | assert|test_encode_preserves_string_without_utf8|# -*- coding: utf-8 -*- from __future__ import print_function, unicode_literals import sys from collections import OrderedDict from wee_slack import decode_from_utf8, encode_to_utf8, utf8_decode b_ae = 'æ'.encode('utf-8') b_oe = 'ø'.encode('utf-8') b_aa = 'å'.encode('utf... | null | null | null |
wee-slack/wee-slack | train | 22 | b459586d96ec1f765d7aed86538b8d8576977f6c | train | _pytest/test_formatting.py | train | wee-slack/wee-slack:_pytest/test_formatting.py | 16 | 4 | assert | test_does_not_format | from __future__ import print_function, unicode_literals
import pytest
import wee_slack
@pytest.mark.parametrize("text", [
"""
* an item
* another item
""",
"* Run this command: `find . -name '*.exe'`",
])
def test_does_not_format(realish_eventrouter, text):
assert wee_slack.render_formatting... | text | modified | 38e997cbb314b293725cb24d6a9761e63e3950e34f0c2b79de3d317431673a2f | assert|test_does_not_format|from __future__ import print_function, unicode_literals import pytest import wee_slack @pytest.mark.parametrize("text", [ """ * an item * another item """, "* Run this command: `find . -name '*.exe'`", ]) def test_does_not_format(realish_eventrouter, text): assert wee_slack.render_formatting... | text | 16 | 4 |
wee-slack/wee-slack | train | 22 | b459586d96ec1f765d7aed86538b8d8576977f6c | train | _pytest/test_linkifytext.py | train | wee-slack/wee-slack:_pytest/test_linkifytext.py | 23 | 4 | assert | test_linkifytext_names_with_accents | # -*- coding: utf-8 -*-
from __future__ import print_function, unicode_literals
import re
from wee_slack import linkify_text
def test_linkifytext_does_partial_html_entity_encoding(team):
text = linkify_text('& < > \' "', team)
assert text == '& < > \' "'
def test_linkifytext_names_with_paranthe... | '@ÁrvíztűrőTükörfúrógép(atukorfurogep): my test message' | added | 2bb65a765761da337e29f5b1f51b4231d9451473258cd24dcad05673507076f4 | assert|test_linkifytext_names_with_accents|# -*- coding: utf-8 -*- from __future__ import print_function, unicode_literals import re from wee_slack import linkify_text def test_linkifytext_does_partial_html_entity_encoding(team): text = linkify_text('& < > \' "', team) assert text == '& < > \' "' def test_lin... | null | null | null |
wee-slack/wee-slack | train | 22 | b459586d96ec1f765d7aed86538b8d8576977f6c | train | _pytest/test_presencechange.py | train | wee-slack/wee-slack:_pytest/test_presencechange.py | 22 | 4 | assert | test_PresenceChange | from __future__ import print_function, unicode_literals
def test_PresenceChange(realish_eventrouter, team, user_alice):
team.ws.add({
"type": "presence_change",
"user": user_alice.identifier,
"presence": "active",
})
team.ws.add({
"type": "presence_change",
"user": ... | "away" | added | a97b6aacb5ca4848e10aaeab06c3daacfc1b7e364b07c76927380acd3d855227 | assert|test_PresenceChange|from __future__ import print_function, unicode_literals def test_PresenceChange(realish_eventrouter, team, user_alice): team.ws.add({ "type": "presence_change", "user": user_alice.identifier, "presence": "active", }) team.ws.add({ "type": "presence_change", "user": user_alice.identifier, "pre... | null | null | null |
wee-slack/wee-slack | train | 22 | b459586d96ec1f765d7aed86538b8d8576977f6c | train | _pytest/test_processreply.py | train | wee-slack/wee-slack:_pytest/test_processreply.py | 17 | 4 | assert | test_process_reply | from __future__ import print_function, unicode_literals
from wee_slack import SlackTS
def test_process_reply(realish_eventrouter, team, channel_general):
message_ts = SlackTS('12341234.123456')
message_text = 'reply test'
channel_general.send_message(message_text)
team.ws.add({'reply_to': 1, '_team':... | message_text | added | 87684641dfda6676de73bfec7c9946cd970f16e1cf612bc2cadfd003da0ae0d3 | assert|test_process_reply|from __future__ import print_function, unicode_literals from wee_slack import SlackTS def test_process_reply(realish_eventrouter, team, channel_general): message_ts = SlackTS('12341234.123456') message_text = 'reply test' channel_general.send_message(message_text) team.ws.add({'reply_to': 1, '... | null | null | null |
wee-slack/wee-slack | train | 22 | b459586d96ec1f765d7aed86538b8d8576977f6c | train | _pytest/test_processsubteamupdated.py | train | wee-slack/wee-slack:_pytest/test_processsubteamupdated.py | 17 | 4 | assert | test_process_subteam_self_updated | from __future__ import print_function, unicode_literals
import json
def test_process_subteam_self_updated(realish_eventrouter, team):
assert len(team.subteams) == 1
datafile = '_pytest/data/websocket/1483975206.59-subteam_updated.json'
data = json.loads(open(datafile, 'r').read())
team.ws.add(data)
... | subteam.description | added | 36ec32773002046ab9274929a1a00e682bca113d8edafc583e2bbf89eff45db8 | assert|test_process_subteam_self_updated|from __future__ import print_function, unicode_literals import json def test_process_subteam_self_updated(realish_eventrouter, team): assert len(team.subteams) == 1 datafile = '_pytest/data/websocket/1483975206.59-subteam_updated.json' data = json.loads(open(datafile, 'r').read(... | null | null | null |
wee-slack/wee-slack | train | 22 | b459586d96ec1f765d7aed86538b8d8576977f6c | train | _pytest/test_sendmessage.py | test | wee-slack/wee-slack:_pytest/test_sendmessage.py | 12 | 4 | assert | test_send_message | from __future__ import print_function, unicode_literals
import json
def test_send_message(realish_eventrouter, team, channel_general):
message_text = 'send message test'
channel_general.send_message(message_text)
sent = json.loads(team.ws.sentdata[0])
assert sent == | { 'text': message_text, 'type': 'message', 'user': team.myidentifier, 'channel': channel_general.id, 'id': 1, } | added | dce73fd644f4e454e3cf8a62df746c965fd4ad7888979d2c7f59d05b47bc31d7 | assert|test_send_message|from __future__ import print_function, unicode_literals import json def test_send_message(realish_eventrouter, team, channel_general): message_text = 'send message test' channel_general.send_message(message_text) sent = json.loads(team.ws.sentdata[0]) assert sent == | null | null | null |
wee-slack/wee-slack | train | 22 | b459586d96ec1f765d7aed86538b8d8576977f6c | train | _pytest/test_topic_command.py | train | wee-slack/wee-slack:_pytest/test_topic_command.py | 92 | 4 | assert | test_call_topic_with_channel_and_string | from __future__ import print_function, unicode_literals
import wee_slack
from wee_slack import parse_topic_command, topic_command_cb
from mock import patch
def test_parse_topic_without_arguments():
channel_name, topic = parse_topic_command('/topic')
assert channel_name is None
assert topic is None
def... | wee_slack.w.WEECHAT_RC_OK_EAT | modified | 1387157701c523f133e3d00b65d1bfe86ce723c6483c1b38e262adf628a21950 | assert|test_call_topic_with_channel_and_string|from __future__ import print_function, unicode_literals import wee_slack from wee_slack import parse_topic_command, topic_command_cb from mock import patch def test_parse_topic_without_arguments(): channel_name, topic = parse_topic_command('/topic') assert channel_name is ... | 'channels.setTopic' | 95 | 4 |
wee-slack/wee-slack | train | 22 | b459586d96ec1f765d7aed86538b8d8576977f6c | train | _pytest/test_unfurl.py | train | wee-slack/wee-slack:_pytest/test_unfurl.py | 78 | 4 | assert | test_unfurl_refs | from __future__ import print_function, unicode_literals
import wee_slack
import pytest
@pytest.mark.parametrize('case', (
{
'input': "foo",
'output': "foo",
},
{
'input': "<@U407ABLLW|@othernick>: foo",
'output': "@alice: foo",
'ignore_alt_text': True,
},
{... | case['output'] | modified | 90a53719dfe00c10f3ed14299c3afaa152435d0eb57b3e6fb5aef272fbd4ebdc | assert|test_unfurl_refs|from __future__ import print_function, unicode_literals import wee_slack import pytest @pytest.mark.parametrize('case', ( { 'input': "foo", 'output': "foo", }, { 'input': "<@U407ABLLW|@othernick>: foo", 'output': "@alice: foo", 'ignore_alt_text': True, }, { 'input': "foo <#C407ABS94|otherchannel... | case['output'] | 80 | 4 |
wee-slack/wee-slack | train | 23 | e21db0d39b3f415c5c00a71bac4c726f84ed8f44 | train | _pytest/test_presencechange.py | train | wee-slack/wee-slack:_pytest/test_presencechange.py | 21 | 4 | assert | test_PresenceChange | from __future__ import print_function, unicode_literals
def test_PresenceChange(realish_eventrouter, team, user_alice):
team.ws.add({
"type": "presence_change",
"user": user_alice.identifier,
"presence": "active",
})
team.ws.add({
"type": "presence_change",
"user": ... | "away" | modified | 14ad7f8b79fc05b90e04248e1d745ab1bff40caf9e1e2368988daeb64f4017db | assert|test_PresenceChange|from __future__ import print_function, unicode_literals def test_PresenceChange(realish_eventrouter, team, user_alice): team.ws.add({ "type": "presence_change", "user": user_alice.identifier, "presence": "active", }) team.ws.add({ "type": "presence_change", "user": user_alice.identifier, "pre... | "away" | 22 | 4 |
wee-slack/wee-slack | train | 23 | e21db0d39b3f415c5c00a71bac4c726f84ed8f44 | train | _pytest/test_process_message.py | train | wee-slack/wee-slack:_pytest/test_process_message.py | 35 | 4 | assert | test_process_message | from __future__ import print_function, unicode_literals
import json
from wee_slack import render, SlackTS
def test_process_message(realish_eventrouter, team, user_alice):
messages = []
messages.append(json.loads(open('_pytest/data/websocket/1485975421.33-message.json', 'r').read()))
# test message and ... | [unchanged_message_ts] | added | d876c63d269c9b6ec8f770e495f66c73cff04286067d5f366c0fdc5aff0db732 | assert|test_process_message|from __future__ import print_function, unicode_literals import json from wee_slack import render, SlackTS def test_process_message(realish_eventrouter, team, user_alice): messages = [] messages.append(json.loads(open('_pytest/data/websocket/1485975421.33-message.json', 'r').read())) # test m... | null | null | null |
wee-slack/wee-slack | train | 23 | e21db0d39b3f415c5c00a71bac4c726f84ed8f44 | train | _pytest/test_process_message.py | train | wee-slack/wee-slack:_pytest/test_process_message.py | 36 | 4 | assert | test_process_message | from __future__ import print_function, unicode_literals
import json
from wee_slack import render, SlackTS
def test_process_message(realish_eventrouter, team, user_alice):
messages = []
messages.append(json.loads(open('_pytest/data/websocket/1485975421.33-message.json', 'r').read()))
# test message and ... | 'hi bob' | added | 14e2c000dc80bf611d6dccddce1e3a67de9c999802a4185c51a2ce6541bde475 | assert|test_process_message|from __future__ import print_function, unicode_literals import json from wee_slack import render, SlackTS def test_process_message(realish_eventrouter, team, user_alice): messages = [] messages.append(json.loads(open('_pytest/data/websocket/1485975421.33-message.json', 'r').read())) # test m... | null | null | null |
wee-slack/wee-slack | train | 23 | e21db0d39b3f415c5c00a71bac4c726f84ed8f44 | train | _pytest/test_process_message.py | train | wee-slack/wee-slack:_pytest/test_process_message.py | 42 | 4 | assert | test_process_message | from __future__ import print_function, unicode_literals
import json
from wee_slack import render, SlackTS
def test_process_message(realish_eventrouter, team, user_alice):
messages = []
messages.append(json.loads(open('_pytest/data/websocket/1485975421.33-message.json', 'r').read()))
# test message and ... | 'referencing a <#C407ABS94|general>' | added | cd47b493718ab8479169659944d1ce27266bb714b213312d3224abad28f3dcd3 | assert|test_process_message|from __future__ import print_function, unicode_literals import json from wee_slack import render, SlackTS def test_process_message(realish_eventrouter, team, user_alice): messages = [] messages.append(json.loads(open('_pytest/data/websocket/1485975421.33-message.json', 'r').read())) # test m... | null | null | null |
wee-slack/wee-slack | train | 23 | e21db0d39b3f415c5c00a71bac4c726f84ed8f44 | train | _pytest/test_process_message.py | train | wee-slack/wee-slack:_pytest/test_process_message.py | 48 | 4 | assert | test_process_message | from __future__ import print_function, unicode_literals
import json
from wee_slack import render, SlackTS
def test_process_message(realish_eventrouter, team, user_alice):
messages = []
messages.append(json.loads(open('_pytest/data/websocket/1485975421.33-message.json', 'r').read()))
# test message and ... | '(deleted)' | added | 94c93db7a8e572fcd9267f0d606651294a2709540db7935e03337c0d37bbedf1 | assert|test_process_message|from __future__ import print_function, unicode_literals import json from wee_slack import render, SlackTS def test_process_message(realish_eventrouter, team, user_alice): messages = [] messages.append(json.loads(open('_pytest/data/websocket/1485975421.33-message.json', 'r').read())) # test m... | null | null | null |
wee-slack/wee-slack | train | 24 | 976041d5fe33d4ddd8ad5749fc8e203f5b1f06c6 | train | _pytest/test_topic_command.py | train | wee-slack/wee-slack:_pytest/test_topic_command.py | 59 | 8 | assert_* | test_call_topic_without_arguments | from __future__ import print_function, unicode_literals
import wee_slack
from wee_slack import parse_topic_command, topic_command_cb
from mock import patch
def test_parse_topic_without_arguments():
channel_name, topic = parse_topic_command('/topic')
assert channel_name is None
assert topic is None
def... | 'Topic for {} is "{}"'.format(channel_general.name, channel_general.topic['value'])) | modified | 6ee0719c7ee28f12016d105e3b00fedc83eea36c3a65e09de1ca3e8f4b0cb55a | assert_*|test_call_topic_without_arguments|from __future__ import print_function, unicode_literals import wee_slack from wee_slack import parse_topic_command, topic_command_cb from mock import patch def test_parse_topic_without_arguments(): channel_name, topic = parse_topic_command('/topic') assert channel_name is None... | 'Topic for {} is "{}"'.format(channel_general.name, channel_general.topic)) | 59 | 8 |
wee-slack/wee-slack | train | 24 | 976041d5fe33d4ddd8ad5749fc8e203f5b1f06c6 | train | _pytest/test_topic_command.py | train | wee-slack/wee-slack:_pytest/test_topic_command.py | 74 | 8 | assert_* | test_call_topic_with_unknown_channel | from __future__ import print_function, unicode_literals
import wee_slack
from wee_slack import parse_topic_command, topic_command_cb
from mock import patch
def test_parse_topic_without_arguments():
channel_name, topic = parse_topic_command('/topic')
assert channel_name is None
assert topic is None
def... | "#nonexisting: No such channel") | modified | ba59a40f55c4233317b335046720c0f7747a1739824d414dd9d34557cf3ef6b8 | assert_*|test_call_topic_with_unknown_channel|from __future__ import print_function, unicode_literals import wee_slack from wee_slack import parse_topic_command, topic_command_cb from mock import patch def test_parse_topic_without_arguments(): channel_name, topic = parse_topic_command('/topic') assert channel_name is N... | "#nonexisting: No such channel") | 74 | 8 |
wee-slack/wee-slack | train | 24 | 976041d5fe33d4ddd8ad5749fc8e203f5b1f06c6 | train | _pytest/test_topic_command.py | train | wee-slack/wee-slack:_pytest/test_topic_command.py | 89 | 4 | assert | test_call_topic_with_channel_and_string | from __future__ import print_function, unicode_literals
import wee_slack
from wee_slack import parse_topic_command, topic_command_cb
from mock import patch
def test_parse_topic_without_arguments():
channel_name, topic = parse_topic_command('/topic')
assert channel_name is None
assert topic is None
def... | 'channels.setTopic' | modified | 563813e1944d841fcb98b4a636d7973acc2a062f1126e4c8cfedd5555b17ed2f | assert|test_call_topic_with_channel_and_string|from __future__ import print_function, unicode_literals import wee_slack from wee_slack import parse_topic_command, topic_command_cb from mock import patch def test_parse_topic_without_arguments(): channel_name, topic = parse_topic_command('/topic') assert channel_name is ... | 'channels.setTopic' | 89 | 4 |
wee-slack/wee-slack | train | 24 | 976041d5fe33d4ddd8ad5749fc8e203f5b1f06c6 | train | _pytest/test_topic_command.py | train | wee-slack/wee-slack:_pytest/test_topic_command.py | 92 | 4 | assert | test_call_topic_with_channel_and_string | from __future__ import print_function, unicode_literals
import wee_slack
from wee_slack import parse_topic_command, topic_command_cb
from mock import patch
def test_parse_topic_without_arguments():
channel_name, topic = parse_topic_command('/topic')
assert channel_name is None
assert topic is None
def... | wee_slack.w.WEECHAT_RC_OK_EAT | modified | fb77d66a3498c875b22e79af20afdcddbb3c148c565fee0aed2e992f6d445806 | assert|test_call_topic_with_channel_and_string|from __future__ import print_function, unicode_literals import wee_slack from wee_slack import parse_topic_command, topic_command_cb from mock import patch def test_parse_topic_without_arguments(): channel_name, topic = parse_topic_command('/topic') assert channel_name is ... | wee_slack.w.WEECHAT_RC_OK_EAT | 92 | 4 |
wee-slack/wee-slack | train | 25 | 9aa307857867266b887bfa46be2f9328fd478824 | train | _pytest/test_process_message.py | train | wee-slack/wee-slack:_pytest/test_process_message.py | 35 | 4 | assert | test_process_message | from __future__ import print_function, unicode_literals
import json
from wee_slack import SlackTS
def test_process_message(realish_eventrouter, team, user_alice):
messages = []
messages.append(json.loads(open('_pytest/data/websocket/1485975421.33-message.json', 'r').read()))
# test message and then cha... | [unchanged_message_ts] | modified | 0adc8818f7f25efb24bfc9ffca8ada6fb7833fc7552c7816e088d7be0fd79f88 | assert|test_process_message|from __future__ import print_function, unicode_literals import json from wee_slack import SlackTS def test_process_message(realish_eventrouter, team, user_alice): messages = [] messages.append(json.loads(open('_pytest/data/websocket/1485975421.33-message.json', 'r').read())) # test message a... | [unchanged_message_ts] | 35 | 4 |
wee-slack/wee-slack | train | 25 | 9aa307857867266b887bfa46be2f9328fd478824 | train | _pytest/test_process_message.py | train | wee-slack/wee-slack:_pytest/test_process_message.py | 36 | 4 | assert | test_process_message | from __future__ import print_function, unicode_literals
import json
from wee_slack import SlackTS
def test_process_message(realish_eventrouter, team, user_alice):
messages = []
messages.append(json.loads(open('_pytest/data/websocket/1485975421.33-message.json', 'r').read()))
# test message and then cha... | 'hi bob' | modified | 19ddd1853f39db4040afeda1c3f38af22b29bab37540f332027643cdff301927 | assert|test_process_message|from __future__ import print_function, unicode_literals import json from wee_slack import SlackTS def test_process_message(realish_eventrouter, team, user_alice): messages = [] messages.append(json.loads(open('_pytest/data/websocket/1485975421.33-message.json', 'r').read())) # test message a... | 'hi bob' | 36 | 4 |
wee-slack/wee-slack | train | 25 | 9aa307857867266b887bfa46be2f9328fd478824 | train | _pytest/test_process_message.py | train | wee-slack/wee-slack:_pytest/test_process_message.py | 42 | 4 | assert | test_process_message | from __future__ import print_function, unicode_literals
import json
from wee_slack import SlackTS
def test_process_message(realish_eventrouter, team, user_alice):
messages = []
messages.append(json.loads(open('_pytest/data/websocket/1485975421.33-message.json', 'r').read()))
# test message and then cha... | 'referencing a <#C407ABS94|general>' | modified | 813a9b501c0864793a767fa713d015ef9dba7d831e6d709528110f80360b896a | assert|test_process_message|from __future__ import print_function, unicode_literals import json from wee_slack import SlackTS def test_process_message(realish_eventrouter, team, user_alice): messages = [] messages.append(json.loads(open('_pytest/data/websocket/1485975421.33-message.json', 'r').read())) # test message a... | 'referencing a <#C407ABS94|general>' | 42 | 4 |
wee-slack/wee-slack | train | 25 | 9aa307857867266b887bfa46be2f9328fd478824 | train | _pytest/test_process_message.py | train | wee-slack/wee-slack:_pytest/test_process_message.py | 48 | 4 | assert | test_process_message | from __future__ import print_function, unicode_literals
import json
from wee_slack import SlackTS
def test_process_message(realish_eventrouter, team, user_alice):
messages = []
messages.append(json.loads(open('_pytest/data/websocket/1485975421.33-message.json', 'r').read()))
# test message and then cha... | '(deleted)' | modified | 3090a980d954afefe011b9b95350734989d436c8b0961d4995eae90f699ff99e | assert|test_process_message|from __future__ import print_function, unicode_literals import json from wee_slack import SlackTS def test_process_message(realish_eventrouter, team, user_alice): messages = [] messages.append(json.loads(open('_pytest/data/websocket/1485975421.33-message.json', 'r').read())) # test message a... | '(deleted)' | 48 | 4 |
wee-slack/wee-slack | train | 26 | 849ffc6bf123242cc20846d913768c7690e9fc5f | train | _pytest/test_topic_command.py | train | wee-slack/wee-slack:_pytest/test_topic_command.py | 89 | 4 | assert | test_call_topic_with_channel_and_string | from __future__ import print_function, unicode_literals
import wee_slack
from wee_slack import parse_topic_command, topic_command_cb
from mock import patch
def test_parse_topic_without_arguments():
channel_name, topic = parse_topic_command('/topic')
assert channel_name is None
assert topic is None
def... | 'conversations.setTopic' | modified | 7ab3f15071ce04ee173780ef3888029541a3d319e403be9d95c685ce371d25b9 | assert|test_call_topic_with_channel_and_string|from __future__ import print_function, unicode_literals import wee_slack from wee_slack import parse_topic_command, topic_command_cb from mock import patch def test_parse_topic_without_arguments(): channel_name, topic = parse_topic_command('/topic') assert channel_name is ... | 'channels.setTopic' | 89 | 4 |
wee-slack/wee-slack | train | 26 | 849ffc6bf123242cc20846d913768c7690e9fc5f | train | _pytest/test_topic_command.py | train | wee-slack/wee-slack:_pytest/test_topic_command.py | 90 | 4 | assert | test_call_topic_with_channel_and_string | from __future__ import print_function, unicode_literals
import wee_slack
from wee_slack import parse_topic_command, topic_command_cb
from mock import patch
def test_parse_topic_without_arguments():
channel_name, topic = parse_topic_command('/topic')
assert channel_name is None
assert topic is None
def... | { 'channel': 'C407ABS94', 'token': 'xoxs-token', 'topic': 'new topic'} | modified | 8192831f5e8f982e4acedd87351fe22f9ecef51960f8b0cf0888bfbb5a597212 | assert|test_call_topic_with_channel_and_string|from __future__ import print_function, unicode_literals import wee_slack from wee_slack import parse_topic_command, topic_command_cb from mock import patch def test_parse_topic_without_arguments(): channel_name, topic = parse_topic_command('/topic') assert channel_name is ... | { 'channel': 'C407ABS94', 'token': 'xoxs-token', 'topic': 'new topic'} | 90 | 4 |
wee-slack/wee-slack | train | 26 | 849ffc6bf123242cc20846d913768c7690e9fc5f | train | _pytest/test_topic_command.py | train | wee-slack/wee-slack:_pytest/test_topic_command.py | 92 | 4 | assert | test_call_topic_with_channel_and_string | from __future__ import print_function, unicode_literals
import wee_slack
from wee_slack import parse_topic_command, topic_command_cb
from mock import patch
def test_parse_topic_without_arguments():
channel_name, topic = parse_topic_command('/topic')
assert channel_name is None
assert topic is None
def... | wee_slack.w.WEECHAT_RC_OK_EAT | modified | 3bf2ebc07f691e2d1c1b96fa51875a52c2d8d2ca685fc68e29009eeee8580c7c | assert|test_call_topic_with_channel_and_string|from __future__ import print_function, unicode_literals import wee_slack from wee_slack import parse_topic_command, topic_command_cb from mock import patch def test_parse_topic_without_arguments(): channel_name, topic = parse_topic_command('/topic') assert channel_name is ... | wee_slack.w.WEECHAT_RC_OK_EAT | 92 | 4 |
wee-slack/wee-slack | train | 27 | 88f02db6f1bdade3c745123a6886bf4f47a4ed9c | train | _pytest/test_linkifytext.py | train | wee-slack/wee-slack:_pytest/test_linkifytext.py | 45 | 4 | assert | test_linkifytext_names_with_subgroup_notification | # -*- coding: utf-8 -*-
from __future__ import print_function, unicode_literals
import re
from wee_slack import linkify_text
def test_linkifytext_does_partial_html_entity_encoding(team):
text = linkify_text('& < > \' "', team)
assert text == '& < > \' "'
def test_linkifytext_names_with_paranthe... | '<!subteam^{}|{}>: {}'.format(subteam.identifier, subteam.handle, message) | modified | dada32f9489bf90e42601b6f52c7bbbf1c52f5d313d63b11aea7ef755ff3d97d | assert|test_linkifytext_names_with_subgroup_notification|# -*- coding: utf-8 -*- from __future__ import print_function, unicode_literals import re from wee_slack import linkify_text def test_linkifytext_does_partial_html_entity_encoding(team): text = linkify_text('& < > \' "', team) assert text == '& < > \' "... | '<!subteam^{}|@{}>: {}'.format(subteam.identifier, subteam.handle, message) | 45 | 4 |
wee-slack/wee-slack | train | 27 | 88f02db6f1bdade3c745123a6886bf4f47a4ed9c | train | _pytest/test_linkifytext.py | train | wee-slack/wee-slack:_pytest/test_linkifytext.py | 50 | 4 | assert | test_linkifytext_at_channel | # -*- coding: utf-8 -*-
from __future__ import print_function, unicode_literals
import re
from wee_slack import linkify_text
def test_linkifytext_does_partial_html_entity_encoding(team):
text = linkify_text('& < > \' "', team)
assert text == '& < > \' "'
def test_linkifytext_names_with_paranthe... | '<!channel>: my test message' | modified | 9f4d0c1af316be3e0a477dd003e2c130a29f3b468aff831d819c0fe5c57cfe29 | assert|test_linkifytext_at_channel|# -*- coding: utf-8 -*- from __future__ import print_function, unicode_literals import re from wee_slack import linkify_text def test_linkifytext_does_partial_html_entity_encoding(team): text = linkify_text('& < > \' "', team) assert text == '& < > \' "' def test_linkifytext... | '<!channel>: my test message' | 50 | 4 |
wee-slack/wee-slack | train | 27 | 88f02db6f1bdade3c745123a6886bf4f47a4ed9c | train | _pytest/test_linkifytext.py | train | wee-slack/wee-slack:_pytest/test_linkifytext.py | 56 | 4 | assert | test_linkifytext_channel | # -*- coding: utf-8 -*-
from __future__ import print_function, unicode_literals
import re
from wee_slack import linkify_text
def test_linkifytext_does_partial_html_entity_encoding(team):
text = linkify_text('& < > \' "', team)
assert text == '& < > \' "'
def test_linkifytext_names_with_paranthe... | '<#{}|{}>: my test message'.format(channel_general.id, channel_name) | modified | e7a3bd436c81ec3188784e7ce675ea08e8bbf77557f1e51bd31c4df8b1119f32 | assert|test_linkifytext_channel|# -*- coding: utf-8 -*- from __future__ import print_function, unicode_literals import re from wee_slack import linkify_text def test_linkifytext_does_partial_html_entity_encoding(team): text = linkify_text('& < > \' "', team) assert text == '& < > \' "' def test_linkifytext_na... | '<#{}|{}>: my test message'.format(channel_general.id, channel_name) | 56 | 4 |
wee-slack/wee-slack | train | 27 | 88f02db6f1bdade3c745123a6886bf4f47a4ed9c | train | _pytest/test_processsubteamupdated.py | train | wee-slack/wee-slack:_pytest/test_processsubteamupdated.py | 16 | 4 | assert | test_process_subteam_self_updated | from __future__ import print_function, unicode_literals
import json
def test_process_subteam_self_updated(realish_eventrouter, team):
assert len(team.subteams) == 1
datafile = '_pytest/data/websocket/1483975206.59-subteam_updated.json'
data = json.loads(open(datafile, 'r').read())
team.ws.add(data)
... | subteam.handle | modified | 447533aeedb331403d10acb3de93c87a08c99e14f51a2f7c882d7b92e36bca9f | assert|test_process_subteam_self_updated|from __future__ import print_function, unicode_literals import json def test_process_subteam_self_updated(realish_eventrouter, team): assert len(team.subteams) == 1 datafile = '_pytest/data/websocket/1483975206.59-subteam_updated.json' data = json.loads(open(datafile, 'r').read(... | subteam.handle | 16 | 4 |
wee-slack/wee-slack | train | 27 | 88f02db6f1bdade3c745123a6886bf4f47a4ed9c | train | _pytest/test_processsubteamupdated.py | train | wee-slack/wee-slack:_pytest/test_processsubteamupdated.py | 17 | 4 | assert | test_process_subteam_self_updated | from __future__ import print_function, unicode_literals
import json
def test_process_subteam_self_updated(realish_eventrouter, team):
assert len(team.subteams) == 1
datafile = '_pytest/data/websocket/1483975206.59-subteam_updated.json'
data = json.loads(open(datafile, 'r').read())
team.ws.add(data)
... | subteam.description | modified | 2bd6b0124ab40396b38f3a29e0f3604cf2ed6fba321f97a533061c3e0f665969 | assert|test_process_subteam_self_updated|from __future__ import print_function, unicode_literals import json def test_process_subteam_self_updated(realish_eventrouter, team): assert len(team.subteams) == 1 datafile = '_pytest/data/websocket/1483975206.59-subteam_updated.json' data = json.loads(open(datafile, 'r').read(... | subteam.description | 17 | 4 |
wee-slack/wee-slack | train | 27 | 88f02db6f1bdade3c745123a6886bf4f47a4ed9c | train | _pytest/test_processsubteamupdated.py | train | wee-slack/wee-slack:_pytest/test_processsubteamupdated.py | 18 | 4 | assert | test_process_subteam_self_updated | from __future__ import print_function, unicode_literals
import json
def test_process_subteam_self_updated(realish_eventrouter, team):
assert len(team.subteams) == 1
datafile = '_pytest/data/websocket/1483975206.59-subteam_updated.json'
data = json.loads(open(datafile, 'r').read())
team.ws.add(data)
... | subteam.name | added | 3c9bbfc0dd5c488b007d3e9d336b0b4593c98180a304502fda16a50f9023f182 | assert|test_process_subteam_self_updated|from __future__ import print_function, unicode_literals import json def test_process_subteam_self_updated(realish_eventrouter, team): assert len(team.subteams) == 1 datafile = '_pytest/data/websocket/1483975206.59-subteam_updated.json' data = json.loads(open(datafile, 'r').read(... | null | null | null |
wee-slack/wee-slack | train | 28 | 560a22cf71aa29fbf175510cd0bc0595e4ce568a | train | _pytest/test_topic_command.py | train | wee-slack/wee-slack:_pytest/test_topic_command.py | 47 | 4 | assert | test_parse_topic_with_channel_and_delete | from __future__ import print_function, unicode_literals
import wee_slack
from wee_slack import parse_topic_command, topic_command_cb
from mock import patch
def test_parse_topic_without_arguments():
channel_name, topic = parse_topic_command('/topic')
assert channel_name is None
assert topic is None
def... | '#general' | added | 63b2294dc59ec42a5cdb0e3a178bec03a48b5bf7e6881b70deb366f7bab3215a | assert|test_parse_topic_with_channel_and_delete|from __future__ import print_function, unicode_literals import wee_slack from wee_slack import parse_topic_command, topic_command_cb from mock import patch def test_parse_topic_without_arguments(): channel_name, topic = parse_topic_command('/topic') assert channel_name is... | null | null | null |
wee-slack/wee-slack | train | 28 | 560a22cf71aa29fbf175510cd0bc0595e4ce568a | train | _pytest/test_topic_command.py | train | wee-slack/wee-slack:_pytest/test_topic_command.py | 63 | 8 | assert | test_call_topic_without_arguments | from __future__ import print_function, unicode_literals
import wee_slack
from wee_slack import parse_topic_command, topic_command_cb
from mock import patch
def test_parse_topic_without_arguments():
channel_name, topic = parse_topic_command('/topic')
assert channel_name is None
assert topic is None
def... | wee_slack.w.WEECHAT_RC_OK_EAT | added | b9e43ab216ba61f98423f1498b3654f5ccb232d78c9ea2c75b88817e9d8afa30 | assert|test_call_topic_without_arguments|from __future__ import print_function, unicode_literals import wee_slack from wee_slack import parse_topic_command, topic_command_cb from mock import patch def test_parse_topic_without_arguments(): channel_name, topic = parse_topic_command('/topic') assert channel_name is None a... | null | null | null |
wee-slack/wee-slack | train | 28 | 560a22cf71aa29fbf175510cd0bc0595e4ce568a | train | _pytest/test_topic_command.py | train | wee-slack/wee-slack:_pytest/test_topic_command.py | 78 | 8 | assert | test_call_topic_with_unknown_channel | from __future__ import print_function, unicode_literals
import wee_slack
from wee_slack import parse_topic_command, topic_command_cb
from mock import patch
def test_parse_topic_without_arguments():
channel_name, topic = parse_topic_command('/topic')
assert channel_name is None
assert topic is None
def... | wee_slack.w.WEECHAT_RC_OK_EAT | modified | b700d30fdd9957e7f72c8f018938aa74a3bb3cfca6e2c71c9bc67165f3712129 | assert|test_call_topic_with_unknown_channel|from __future__ import print_function, unicode_literals import wee_slack from wee_slack import parse_topic_command, topic_command_cb from mock import patch def test_parse_topic_without_arguments(): channel_name, topic = parse_topic_command('/topic') assert channel_name is Non... | wee_slack.w.WEECHAT_RC_OK_EAT | 78 | 8 |
wee-slack/wee-slack | train | 28 | 560a22cf71aa29fbf175510cd0bc0595e4ce568a | train | _pytest/test_topic_command.py | train | wee-slack/wee-slack:_pytest/test_topic_command.py | 92 | 4 | assert | test_call_topic_with_channel_and_string | from __future__ import print_function, unicode_literals
import wee_slack
from wee_slack import parse_topic_command, topic_command_cb
from mock import patch
def test_parse_topic_without_arguments():
channel_name, topic = parse_topic_command('/topic')
assert channel_name is None
assert topic is None
def... | wee_slack.w.WEECHAT_RC_OK_EAT | modified | 6bb10f758b434cab91db230df47af50b9d45071a86e978f6c177a605341e1545 | assert|test_call_topic_with_channel_and_string|from __future__ import print_function, unicode_literals import wee_slack from wee_slack import parse_topic_command, topic_command_cb from mock import patch def test_parse_topic_without_arguments(): channel_name, topic = parse_topic_command('/topic') assert channel_name is ... | wee_slack.w.WEECHAT_RC_OK_EAT | 92 | 4 |
wee-slack/wee-slack | train | 29 | 97ea3ae638ced4908bdd259e8d2c3c6996f0b1e9 | train | _pytest/test_unfurl.py | train | wee-slack/wee-slack:_pytest/test_unfurl.py | 94 | 4 | assert | test_unfurl_refs | from __future__ import print_function, unicode_literals
import wee_slack
import pytest
@pytest.mark.parametrize('case', (
{
'input': "foo",
'output': "foo",
},
{
'input': "<!channel>",
'output': "@channel",
},
{
'input': "<!everyone>",
'output': "@e... | case['output'] | added | 52f2d0d88ba8f0d32a454e1591f7255ad7c15b80030ccf93a1f12abe15ed715c | assert|test_unfurl_refs|from __future__ import print_function, unicode_literals import wee_slack import pytest @pytest.mark.parametrize('case', ( { 'input': "foo", 'output': "foo", }, { 'input': "<!channel>", 'output': "@channel", }, { 'input': "<!everyone>", 'output': "@everyone", }, { 'input': "<!group>", 'output': "... | null | null | null |
wee-slack/wee-slack | train | 30 | 64cf9f64e1097f8b4dacf08c9c6cc6a6baeb77a3 | train | _pytest/test_linkifytext.py | train | wee-slack/wee-slack:_pytest/test_linkifytext.py | 55 | 4 | assert | test_linkifytext_at_group | # -*- coding: utf-8 -*-
from __future__ import print_function, unicode_literals
import re
from wee_slack import linkify_text
def test_linkifytext_does_partial_html_entity_encoding(team):
text = linkify_text('& < > \' "', team)
assert text == '& < > \' "'
def test_linkifytext_names_with_paranthe... | '<!group>: my test message' | added | 9064ed6a0e708fa09645a162679c2649a62ee17301ccd498228f23406d9219d9 | assert|test_linkifytext_at_group|# -*- coding: utf-8 -*- from __future__ import print_function, unicode_literals import re from wee_slack import linkify_text def test_linkifytext_does_partial_html_entity_encoding(team): text = linkify_text('& < > \' "', team) assert text == '& < > \' "' def test_linkifytext_n... | null | null | null |
wee-slack/wee-slack | train | 30 | 64cf9f64e1097f8b4dacf08c9c6cc6a6baeb77a3 | train | _pytest/test_linkifytext.py | train | wee-slack/wee-slack:_pytest/test_linkifytext.py | 60 | 4 | assert | test_linkifytext_at_here | # -*- coding: utf-8 -*-
from __future__ import print_function, unicode_literals
import re
from wee_slack import linkify_text
def test_linkifytext_does_partial_html_entity_encoding(team):
text = linkify_text('& < > \' "', team)
assert text == '& < > \' "'
def test_linkifytext_names_with_paranthe... | '<!here>: my test message' | added | 9cd1c0ce9081c2cc9cbf521361d32a4bb09da52aa0e795c8a3e00a5803d58c27 | assert|test_linkifytext_at_here|# -*- coding: utf-8 -*- from __future__ import print_function, unicode_literals import re from wee_slack import linkify_text def test_linkifytext_does_partial_html_entity_encoding(team): text = linkify_text('& < > \' "', team) assert text == '& < > \' "' def test_linkifytext_na... | null | null | null |
wee-slack/wee-slack | train | 30 | 64cf9f64e1097f8b4dacf08c9c6cc6a6baeb77a3 | train | _pytest/test_linkifytext.py | train | wee-slack/wee-slack:_pytest/test_linkifytext.py | 72 | 4 | assert | test_linkifytext_not_private_using_hash | # -*- coding: utf-8 -*-
from __future__ import print_function, unicode_literals
import re
from wee_slack import linkify_text
def test_linkifytext_does_partial_html_entity_encoding(team):
text = linkify_text('& < > \' "', team)
assert text == '& < > \' "'
def test_linkifytext_names_with_paranthe... | '#{}: my test message'.format(channel_name) | added | fac2556552ad5e93eb877b61a510d07867c6cf37bd5e5bb6164a79f263e06476 | assert|test_linkifytext_not_private_using_hash|# -*- coding: utf-8 -*- from __future__ import print_function, unicode_literals import re from wee_slack import linkify_text def test_linkifytext_does_partial_html_entity_encoding(team): text = linkify_text('& < > \' "', team) assert text == '& < > \' "' def test... | null | null | null |
wee-slack/wee-slack | train | 30 | 64cf9f64e1097f8b4dacf08c9c6cc6a6baeb77a3 | train | _pytest/test_linkifytext.py | train | wee-slack/wee-slack:_pytest/test_linkifytext.py | 78 | 4 | assert | test_linkifytext_not_private_using_ampersand | # -*- coding: utf-8 -*-
from __future__ import print_function, unicode_literals
import re
from wee_slack import linkify_text
def test_linkifytext_does_partial_html_entity_encoding(team):
text = linkify_text('& < > \' "', team)
assert text == '& < > \' "'
def test_linkifytext_names_with_paranthe... | '&{}: my test message'.format(channel_name) | added | 168ca3186ac9f775032db67072e93593868fdaeafa261839714ef2631e8ce1cd | assert|test_linkifytext_not_private_using_ampersand|# -*- coding: utf-8 -*- from __future__ import print_function, unicode_literals import re from wee_slack import linkify_text def test_linkifytext_does_partial_html_entity_encoding(team): text = linkify_text('& < > \' "', team) assert text == '& < > \' "' def... | null | null | null |
wee-slack/wee-slack | train | 31 | c35a6d81368f81e9d2ac991c9f4ae0d22405918b | train | _pytest/test_linkifytext.py | train | wee-slack/wee-slack:_pytest/test_linkifytext.py | 55 | 4 | assert | test_linkifytext_at_everyone | # -*- coding: utf-8 -*-
from __future__ import print_function, unicode_literals
import re
from wee_slack import linkify_text
def test_linkifytext_does_partial_html_entity_encoding(team):
text = linkify_text('& < > \' "', team)
assert text == '& < > \' "'
def test_linkifytext_names_with_paranthe... | '<!everyone>: my test message' | added | d366a09bb11438d76e0d9b0597f45fff0d282d8a414245a879a63a4a98d6e268 | assert|test_linkifytext_at_everyone|# -*- coding: utf-8 -*- from __future__ import print_function, unicode_literals import re from wee_slack import linkify_text def test_linkifytext_does_partial_html_entity_encoding(team): text = linkify_text('& < > \' "', team) assert text == '& < > \' "' def test_linkifytex... | null | null | null |
wee-slack/wee-slack | train | 31 | c35a6d81368f81e9d2ac991c9f4ae0d22405918b | train | _pytest/test_linkifytext.py | train | wee-slack/wee-slack:_pytest/test_linkifytext.py | 65 | 4 | assert | test_linkifytext_at_here | # -*- coding: utf-8 -*-
from __future__ import print_function, unicode_literals
import re
from wee_slack import linkify_text
def test_linkifytext_does_partial_html_entity_encoding(team):
text = linkify_text('& < > \' "', team)
assert text == '& < > \' "'
def test_linkifytext_names_with_paranthe... | '<!here>: my test message' | added | 49505cee9322e490a528273a0355bc3af5be52e96f3015c3d111c0ec3911ae75 | assert|test_linkifytext_at_here|# -*- coding: utf-8 -*- from __future__ import print_function, unicode_literals import re from wee_slack import linkify_text def test_linkifytext_does_partial_html_entity_encoding(team): text = linkify_text('& < > \' "', team) assert text == '& < > \' "' def test_linkifytext_na... | null | null | null |
wee-slack/wee-slack | train | 31 | c35a6d81368f81e9d2ac991c9f4ae0d22405918b | train | _pytest/test_linkifytext.py | train | wee-slack/wee-slack:_pytest/test_linkifytext.py | 71 | 4 | assert | test_linkifytext_channel | # -*- coding: utf-8 -*-
from __future__ import print_function, unicode_literals
import re
from wee_slack import linkify_text
def test_linkifytext_does_partial_html_entity_encoding(team):
text = linkify_text('& < > \' "', team)
assert text == '& < > \' "'
def test_linkifytext_names_with_paranthe... | '<#{}|{}>: my test message'.format(channel_general.id, channel_name) | added | a2b2a9ff88a9677c4e64216778d163480238a317468b26104137f9de79dca686 | assert|test_linkifytext_channel|# -*- coding: utf-8 -*- from __future__ import print_function, unicode_literals import re from wee_slack import linkify_text def test_linkifytext_does_partial_html_entity_encoding(team): text = linkify_text('& < > \' "', team) assert text == '& < > \' "' def test_linkifytext_na... | null | null | null |
wee-slack/wee-slack | train | 31 | c35a6d81368f81e9d2ac991c9f4ae0d22405918b | train | _pytest/test_linkifytext.py | train | wee-slack/wee-slack:_pytest/test_linkifytext.py | 77 | 4 | assert | test_linkifytext_not_private_using_hash | # -*- coding: utf-8 -*-
from __future__ import print_function, unicode_literals
import re
from wee_slack import linkify_text
def test_linkifytext_does_partial_html_entity_encoding(team):
text = linkify_text('& < > \' "', team)
assert text == '& < > \' "'
def test_linkifytext_names_with_paranthe... | '#{}: my test message'.format(channel_name) | added | bc9d9745b75451edd29129168b9346f603387cdfcdb59ac69cf3bb7486c57a2a | assert|test_linkifytext_not_private_using_hash|# -*- coding: utf-8 -*- from __future__ import print_function, unicode_literals import re from wee_slack import linkify_text def test_linkifytext_does_partial_html_entity_encoding(team): text = linkify_text('& < > \' "', team) assert text == '& < > \' "' def test... | null | null | null |
wee-slack/wee-slack | train | 32 | f5cfdabb740ddbebf379fa93f9cb80b00ace2c48 | train | _pytest/test_linkifytext.py | train | wee-slack/wee-slack:_pytest/test_linkifytext.py | 93 | 4 | assert | test_linkifytext_not_mpdm | # -*- coding: utf-8 -*-
from __future__ import print_function, unicode_literals
import re
from wee_slack import linkify_text
def test_linkifytext_does_partial_html_entity_encoding(team):
text = linkify_text('& < > \' "', team)
assert text == '& < > \' "'
def test_linkifytext_names_with_paranthe... | '#{}: my test message'.format(channel_mpdm.name) | added | 56466d97f2412e7dcfe08cdf4372f4f9ee83ef824fcd865c7544b04794cf010d | assert|test_linkifytext_not_mpdm|# -*- coding: utf-8 -*- from __future__ import print_function, unicode_literals import re from wee_slack import linkify_text def test_linkifytext_does_partial_html_entity_encoding(team): text = linkify_text('& < > \' "', team) assert text == '& < > \' "' def test_linkifytext_n... | null | null | null |
wee-slack/wee-slack | train | 33 | d3da855bb57f9cf795cab8626dd7f9b089232212 | train | _pytest/test_thread.py | val | wee-slack/wee-slack:_pytest/test_thread.py | 19 | 4 | assert | test_message_has_thread_suffix | from __future__ import print_function, unicode_literals
import json
from wee_slack import SlackTS
thread_ts = SlackTS('1485975824.000004')
def test_message_has_thread_suffix(realish_eventrouter, team, channel_general):
datafile = '_pytest/data/websocket/1485975824.48-message.json'
data = json.loads(open(d... | 'generally, yep!' | added | 9ff8f3707b02b381e425cb4eecbbda830f40b81424da5787b928f4dfd9e1d827 | assert|test_message_has_thread_suffix|from __future__ import print_function, unicode_literals import json from wee_slack import SlackTS thread_ts = SlackTS('1485975824.000004') def test_message_has_thread_suffix(realish_eventrouter, team, channel_general): datafile = '_pytest/data/websocket/1485975824.48-message.json' ... | null | null | null |
wee-slack/wee-slack | train | 33 | d3da855bb57f9cf795cab8626dd7f9b089232212 | train | _pytest/test_thread.py | val | wee-slack/wee-slack:_pytest/test_thread.py | 28 | 4 | assert | test_message_has_thread_suffix | from __future__ import print_function, unicode_literals
import json
from wee_slack import SlackTS
thread_ts = SlackTS('1485975824.000004')
def test_message_has_thread_suffix(realish_eventrouter, team, channel_general):
datafile = '_pytest/data/websocket/1485975824.48-message.json'
data = json.loads(open(d... | 'generally, yep! [ Thread: 309 Replies: 1 ]' | added | 63f7dc2d14b4454e9ab640c4276b3cfe9cf668d9264ac74413f8ad32fdd78c56 | assert|test_message_has_thread_suffix|from __future__ import print_function, unicode_literals import json from wee_slack import SlackTS thread_ts = SlackTS('1485975824.000004') def test_message_has_thread_suffix(realish_eventrouter, team, channel_general): datafile = '_pytest/data/websocket/1485975824.48-message.json' ... | null | null | null |
wee-slack/wee-slack | train | 33 | d3da855bb57f9cf795cab8626dd7f9b089232212 | train | _pytest/test_thread.py | val | wee-slack/wee-slack:_pytest/test_thread.py | 37 | 4 | assert | test_message_has_thread_suffix | from __future__ import print_function, unicode_literals
import json
from wee_slack import SlackTS
thread_ts = SlackTS('1485975824.000004')
def test_message_has_thread_suffix(realish_eventrouter, team, channel_general):
datafile = '_pytest/data/websocket/1485975824.48-message.json'
data = json.loads(open(d... | 'generally, yep! [ Thread: 309 Replies: 2 ]' | added | 253a2ea55311feb16427bfc7fbc241ca3b5e6a9a14e8999d7cc2bb8bcb92c008 | assert|test_message_has_thread_suffix|from __future__ import print_function, unicode_literals import json from wee_slack import SlackTS thread_ts = SlackTS('1485975824.000004') def test_message_has_thread_suffix(realish_eventrouter, team, channel_general): datafile = '_pytest/data/websocket/1485975824.48-message.json' ... | null | null | null |
wee-slack/wee-slack | train | 34 | 6c07fb93e5c0ea8e481bebce4664bc4bfb28ac1f | train | _pytest/test_unfurl.py | train | wee-slack/wee-slack:_pytest/test_unfurl.py | 94 | 4 | assert | test_unfurl_refs | from __future__ import print_function, unicode_literals
import wee_slack
import pytest
@pytest.mark.parametrize('case', (
{
'input': "foo",
'output': "foo",
},
{
'input': "<!channel>",
'output': "@channel",
},
{
'input': "<!everyone>",
'output': "@e... | case['output'] | modified | dacf32d676de8807b65328d9f38600e7a7b112de238523bee66b63cdcb7de2d2 | assert|test_unfurl_refs|from __future__ import print_function, unicode_literals import wee_slack import pytest @pytest.mark.parametrize('case', ( { 'input': "foo", 'output': "foo", }, { 'input': "<!channel>", 'output': "@channel", }, { 'input': "<!everyone>", 'output': "@everyone", }, { 'input': "<!group>", 'output': "... | case['output'] | 94 | 4 |
wee-slack/wee-slack | train | 35 | cc6459415bbf117353564cc709da0343434dcf23 | train | _pytest/test_unfurl.py | train | wee-slack/wee-slack:_pytest/test_unfurl.py | 92 | 4 | assert | test_unfurl_refs | from __future__ import print_function, unicode_literals
import wee_slack
import pytest
@pytest.mark.parametrize('case', (
{
'input': "foo",
'output': "foo",
},
{
'input': "<!channel>",
'output': "@channel",
},
{
'input': "<!everyone>",
'output': "@e... | case['output'] | modified | 572756160ebc328c7149a646dc05afb89ceb0d676880b5b911d3016279ce50f9 | assert|test_unfurl_refs|from __future__ import print_function, unicode_literals import wee_slack import pytest @pytest.mark.parametrize('case', ( { 'input': "foo", 'output': "foo", }, { 'input': "<!channel>", 'output': "@channel", }, { 'input': "<!everyone>", 'output': "@everyone", }, { 'input': "<!group>", 'output': "... | case['output'] | 94 | 4 |
wee-slack/wee-slack | train | 36 | 5b40e22b1a6d8cd44f72195d3a15338e72fe2ec7 | train | _pytest/test_unfurl.py | train | wee-slack/wee-slack:_pytest/test_unfurl.py | 112 | 4 | assert | test_unfurl_refs | from __future__ import print_function, unicode_literals
import wee_slack
import pytest
@pytest.mark.parametrize('case', (
{
'input': "foo",
'output': "foo",
},
{
'input': "<!channel>",
'output': "@channel",
},
{
'input': "<!everyone>",
'output': "@e... | case['output'] | added | f6331d5c438b5c5023db513533033b12ed0e8ef4ef1ab941630bbe0eece5b68c | assert|test_unfurl_refs|from __future__ import print_function, unicode_literals import wee_slack import pytest @pytest.mark.parametrize('case', ( { 'input': "foo", 'output': "foo", }, { 'input': "<!channel>", 'output': "@channel", }, { 'input': "<!everyone>", 'output': "@everyone", }, { 'input': "<!group>", 'output': "... | null | null | null |
wee-slack/wee-slack | train | 37 | c0035aa9766e4b20ac597a146cea8b0c69dbedb1 | train | _pytest/test_unfurl.py | train | wee-slack/wee-slack:_pytest/test_unfurl.py | 116 | 4 | assert | test_unfurl_refs | from __future__ import print_function, unicode_literals
import wee_slack
import pytest
@pytest.mark.parametrize('case', (
{
'input': "foo",
'output': "foo",
},
{
'input': "<!channel>",
'output': "@channel",
},
{
'input': "<!everyone>",
'output': "@e... | case['output'] | added | 796129ddbba62509de5176c32a9addd9313c50d2a3ca4ef788efabd9bfca5615 | assert|test_unfurl_refs|from __future__ import print_function, unicode_literals import wee_slack import pytest @pytest.mark.parametrize('case', ( { 'input': "foo", 'output': "foo", }, { 'input': "<!channel>", 'output': "@channel", }, { 'input': "<!everyone>", 'output': "@everyone", }, { 'input': "<!group>", 'output': "... | null | null | null |
wee-slack/wee-slack | train | 38 | aaa7ed528a47d92c1ed9a1793a6bbde9db07cf5d | train | _pytest/test_unfurl.py | train | wee-slack/wee-slack:_pytest/test_unfurl.py | 144 | 4 | assert | test_unfurl_refs | from __future__ import print_function, unicode_literals
from datetime import datetime, timedelta
import pytest
import wee_slack
@pytest.mark.parametrize('case', (
{
'input': "foo",
'output': "foo",
},
{
'input': "<!channel>",
'output': "@channel",
},
{
'inp... | case['output'] | added | 9d9cc4197a9b881b643bd24acff95828ca9743d566029f61b4426e08ccaace47 | assert|test_unfurl_refs|from __future__ import print_function, unicode_literals from datetime import datetime, timedelta import pytest import wee_slack @pytest.mark.parametrize('case', ( { 'input': "foo", 'output': "foo", }, { 'input': "<!channel>", 'output': "@channel", }, { 'input': "<!everyone>", 'output': "@everyon... | null | null | null |
wee-slack/wee-slack | train | 39 | 395cd5f01d08c4b5ab278ede4baa4c9f15e6e89b | train | _pytest/test_unfurl.py | train | wee-slack/wee-slack:_pytest/test_unfurl.py | 148 | 4 | assert | test_unfurl_refs | from __future__ import print_function, unicode_literals
from datetime import datetime, timedelta
import pytest
import wee_slack
@pytest.mark.parametrize('case', (
{
'input': "foo",
'output': "foo",
},
{
'input': "<!channel>",
'output': "@channel",
},
{
'inp... | case['output'] | added | 622c2bff4cbdc1c4780ae81c0f27fb540e6180aafe6a03249f152c47e35bedc3 | assert|test_unfurl_refs|from __future__ import print_function, unicode_literals from datetime import datetime, timedelta import pytest import wee_slack @pytest.mark.parametrize('case', ( { 'input': "foo", 'output': "foo", }, { 'input': "<!channel>", 'output': "@channel", }, { 'input': "<!everyone>", 'output': "@everyon... | null | null | null |
wee-slack/wee-slack | train | 40 | 5682e396c30ab2a65c35e066b441899b9e270800 | train | _pytest/test_unfurl.py | train | wee-slack/wee-slack:_pytest/test_unfurl.py | 149 | 4 | assert | test_unfurl_refs | from __future__ import print_function, unicode_literals
from datetime import datetime, timedelta
import pytest
import time
import wee_slack
@pytest.mark.parametrize('case', (
{
'input': "foo",
'output': "foo",
},
{
'input': "<!channel>",
'output': "@channel",
},
{
... | case['output'] | modified | 0be3d7073486a9f87a1de9704f19506c11282e60b98c0178c7f41e278cbca5a0 | assert|test_unfurl_refs|from __future__ import print_function, unicode_literals from datetime import datetime, timedelta import pytest import time import wee_slack @pytest.mark.parametrize('case', ( { 'input': "foo", 'output': "foo", }, { 'input': "<!channel>", 'output': "@channel", }, { 'input': "<!everyone>", 'output... | case['output'] | 148 | 4 |
wee-slack/wee-slack | train | 41 | 1177240dd248daf3592d808cbb14ab2c906089c9 | train | _pytest/test_presencechange.py | train | wee-slack/wee-slack:_pytest/test_presencechange.py | 18 | 4 | assert | test_PresenceChange | from __future__ import print_function, unicode_literals
def test_PresenceChange(realish_eventrouter, team, user_alice):
team.ws.add({
"type": "presence_change",
"user": user_alice.identifier,
"presence": "active",
})
team.ws.add({
"type": "presence_change",
"user": ... | "active" | modified | 26d0d1cf1090ef09ce4e0ee1e487533cc93ff2edb50cc61a2871b972c74a8c94 | assert|test_PresenceChange|from __future__ import print_function, unicode_literals def test_PresenceChange(realish_eventrouter, team, user_alice): team.ws.add({ "type": "presence_change", "user": user_alice.identifier, "presence": "active", }) team.ws.add({ "type": "presence_change", "user": user_alice.identifier, "pre... | "active" | 18 | 4 |
wee-slack/wee-slack | train | 41 | 1177240dd248daf3592d808cbb14ab2c906089c9 | train | _pytest/test_presencechange.py | train | wee-slack/wee-slack:_pytest/test_presencechange.py | 21 | 4 | assert | test_PresenceChange | from __future__ import print_function, unicode_literals
def test_PresenceChange(realish_eventrouter, team, user_alice):
team.ws.add({
"type": "presence_change",
"user": user_alice.identifier,
"presence": "active",
})
team.ws.add({
"type": "presence_change",
"user": ... | "away" | modified | 5b6443d10d6d726a3d029c2364597e30db0e32c82e7ab3d3eff6380eb272ec6b | assert|test_PresenceChange|from __future__ import print_function, unicode_literals def test_PresenceChange(realish_eventrouter, team, user_alice): team.ws.add({ "type": "presence_change", "user": user_alice.identifier, "presence": "active", }) team.ws.add({ "type": "presence_change", "user": user_alice.identifier, "pre... | "away" | 21 | 4 |
wee-slack/wee-slack | train | 41 | 1177240dd248daf3592d808cbb14ab2c906089c9 | train | _pytest/test_process_message.py | train | wee-slack/wee-slack:_pytest/test_process_message.py | 37 | 4 | assert | test_process_message | from __future__ import print_function, unicode_literals
import json
from wee_slack import SlackTS
def test_process_message(realish_eventrouter, team, user_alice):
messages = []
messages.append(json.loads(open('_pytest/data/websocket/1485975421.33-message.json', 'r').read()))
# test message and then cha... | unchanged_message_channel.messages[unchanged_message_ts].message_json | modified | 695f0350ea82629191c4eb1fb28abe595077fcd1e25077b970303df25b7767a8 | assert|test_process_message|from __future__ import print_function, unicode_literals import json from wee_slack import SlackTS def test_process_message(realish_eventrouter, team, user_alice): messages = [] messages.append(json.loads(open('_pytest/data/websocket/1485975421.33-message.json', 'r').read())) # test message a... | unchanged_message_channel.messages[unchanged_message_ts].message_json | 37 | 4 |
wee-slack/wee-slack | train | 41 | 1177240dd248daf3592d808cbb14ab2c906089c9 | train | _pytest/test_processreply.py | train | wee-slack/wee-slack:_pytest/test_processreply.py | 17 | 4 | assert | test_process_reply | from __future__ import print_function, unicode_literals
from wee_slack import SlackTS
def test_process_reply(realish_eventrouter, team, channel_general):
message_ts = SlackTS('12341234.123456')
message_text = 'reply test'
channel_general.send_message(message_text)
team.ws.add({'reply_to': 1, '_team':... | message_text | modified | 368d0d0064aa1b4629cabe908a65150e2d7c1c77b7f63898a3306159f3ea3217 | assert|test_process_reply|from __future__ import print_function, unicode_literals from wee_slack import SlackTS def test_process_reply(realish_eventrouter, team, channel_general): message_ts = SlackTS('12341234.123456') message_text = 'reply test' channel_general.send_message(message_text) team.ws.add({'reply_to': 1, '... | message_text | 17 | 4 |
wee-slack/wee-slack | train | 41 | 1177240dd248daf3592d808cbb14ab2c906089c9 | train | _pytest/test_processsubteamupdated.py | train | wee-slack/wee-slack:_pytest/test_processsubteamupdated.py | 16 | 4 | assert | test_process_subteam_self_updated | from __future__ import print_function, unicode_literals
import json
def test_process_subteam_self_updated(realish_eventrouter, team):
assert len(team.subteams) == 1
datafile = '_pytest/data/websocket/1483975206.59-subteam_updated.json'
data = json.loads(open(datafile, 'r').read())
team.ws.add(data)
... | subteam.handle | modified | a8a43c0b14d2d43b80a27f8c9cd377bb651f05fa13ba550cadde1bb3e3d054ba | assert|test_process_subteam_self_updated|from __future__ import print_function, unicode_literals import json def test_process_subteam_self_updated(realish_eventrouter, team): assert len(team.subteams) == 1 datafile = '_pytest/data/websocket/1483975206.59-subteam_updated.json' data = json.loads(open(datafile, 'r').read(... | subteam.handle | 16 | 4 |
wee-slack/wee-slack | train | 41 | 1177240dd248daf3592d808cbb14ab2c906089c9 | train | _pytest/test_processsubteamupdated.py | train | wee-slack/wee-slack:_pytest/test_processsubteamupdated.py | 18 | 4 | assert | test_process_subteam_self_updated | from __future__ import print_function, unicode_literals
import json
def test_process_subteam_self_updated(realish_eventrouter, team):
assert len(team.subteams) == 1
datafile = '_pytest/data/websocket/1483975206.59-subteam_updated.json'
data = json.loads(open(datafile, 'r').read())
team.ws.add(data)
... | subteam.name | modified | c2888b19e0fb7ece1637465edcfc5740898f8afd99ccb8de368aeb9f2d5e581b | assert|test_process_subteam_self_updated|from __future__ import print_function, unicode_literals import json def test_process_subteam_self_updated(realish_eventrouter, team): assert len(team.subteams) == 1 datafile = '_pytest/data/websocket/1483975206.59-subteam_updated.json' data = json.loads(open(datafile, 'r').read(... | subteam.name | 18 | 4 |
wee-slack/wee-slack | train | 41 | 1177240dd248daf3592d808cbb14ab2c906089c9 | train | _pytest/test_thread.py | val | wee-slack/wee-slack:_pytest/test_thread.py | 19 | 4 | assert | test_message_has_thread_suffix | from __future__ import print_function, unicode_literals
import json
from wee_slack import SlackTS
thread_ts = SlackTS('1485975824.000004')
def test_message_has_thread_suffix(realish_eventrouter, team, channel_general):
datafile = '_pytest/data/websocket/1485975824.48-message.json'
data = json.loads(open(d... | 'generally, yep!' | modified | ab1137726f17a238f71372e2f8a2bd11a175e0c1033fb5c21ed36bb5ed55d63d | assert|test_message_has_thread_suffix|from __future__ import print_function, unicode_literals import json from wee_slack import SlackTS thread_ts = SlackTS('1485975824.000004') def test_message_has_thread_suffix(realish_eventrouter, team, channel_general): datafile = '_pytest/data/websocket/1485975824.48-message.json' ... | 'generally, yep!' | 19 | 4 |
wee-slack/wee-slack | train | 41 | 1177240dd248daf3592d808cbb14ab2c906089c9 | train | _pytest/test_thread.py | val | wee-slack/wee-slack:_pytest/test_thread.py | 28 | 4 | assert | test_message_has_thread_suffix | from __future__ import print_function, unicode_literals
import json
from wee_slack import SlackTS
thread_ts = SlackTS('1485975824.000004')
def test_message_has_thread_suffix(realish_eventrouter, team, channel_general):
datafile = '_pytest/data/websocket/1485975824.48-message.json'
data = json.loads(open(d... | 'generally, yep! [ Thread: 309 Replies: 1 ]' | modified | 5a81c09da20da207d02ff250ce1048789b823de3426774ac048ee481b620cab9 | assert|test_message_has_thread_suffix|from __future__ import print_function, unicode_literals import json from wee_slack import SlackTS thread_ts = SlackTS('1485975824.000004') def test_message_has_thread_suffix(realish_eventrouter, team, channel_general): datafile = '_pytest/data/websocket/1485975824.48-message.json' ... | 'generally, yep! [ Thread: 309 Replies: 1 ]' | 28 | 4 |
wee-slack/wee-slack | train | 43 | 8e13b38200f83d4a6fde15188aa00f7679eb17d7 | train | _pytest/test_command_reply.py | train | wee-slack/wee-slack:_pytest/test_command_reply.py | 25 | 4 | assert | test_replying_to_child_should_use_parent_ts | from __future__ import print_function, unicode_literals
import json
from wee_slack import SlackTS, command_reply
parent_ts = SlackTS('1485975824.000004')
child_ts = SlackTS('1485975835.000005')
def test_replying_to_child_should_use_parent_ts(realish_eventrouter, team, channel_general):
datafiles = [
... | parent_ts | added | f7f17bcc5f7f11253ba18ad571f31b57ec77219ec84a58eab397f65a7f418f96 | assert|test_replying_to_child_should_use_parent_ts|from __future__ import print_function, unicode_literals import json from wee_slack import SlackTS, command_reply parent_ts = SlackTS('1485975824.000004') child_ts = SlackTS('1485975835.000005') def test_replying_to_child_should_use_parent_ts(realish_eventrouter, team, ... | null | null | null |
wee-slack/wee-slack | train | 44 | 2fe22630c27bde3d185f4f6c663b16d1ce2910ac | train | _pytest/test_unfurl.py | train | wee-slack/wee-slack:_pytest/test_unfurl.py | 164 | 4 | assert | test_unfurl_refs | from __future__ import print_function, unicode_literals
from datetime import datetime, timedelta
import pytest
import time
import wee_slack
@pytest.mark.parametrize('case', (
{
'input': "foo",
'output': "foo",
},
{
'input': "<!channel>",
'output': "@channel",
},
{
... | case['output'] | added | 814b539799574350a52c54227c57adbd1e450c9fba253185cb5c5937721995fb | assert|test_unfurl_refs|from __future__ import print_function, unicode_literals from datetime import datetime, timedelta import pytest import time import wee_slack @pytest.mark.parametrize('case', ( { 'input': "foo", 'output': "foo", }, { 'input': "<!channel>", 'output': "@channel", }, { 'input': "<!everyone>", 'output... | null | null | null |
wee-slack/wee-slack | train | 45 | 5dfba738a85d3065de0275ae3a0ed607d1fe3788 | train | _pytest/test_unfurl.py | train | wee-slack/wee-slack:_pytest/test_unfurl.py | 169 | 4 | assert | test_unfurl_refs | from __future__ import print_function, unicode_literals
from datetime import datetime, timedelta
import pytest
import time
import wee_slack
@pytest.mark.parametrize('case', (
{
'input': "foo",
'output': "foo",
},
{
'input': "<!channel>",
'output': "@channel",
},
{
... | case['output'] | added | d66b60f2cfa0479d94159fcc4538abd012afd96303ea9b900769b5700f41f8e4 | assert|test_unfurl_refs|from __future__ import print_function, unicode_literals from datetime import datetime, timedelta import pytest import time import wee_slack @pytest.mark.parametrize('case', ( { 'input': "foo", 'output': "foo", }, { 'input': "<!channel>", 'output': "@channel", }, { 'input': "<!everyone>", 'output... | null | null | null |
wee-slack/wee-slack | train | 46 | 2877fa65958921c4b8dcf6caef11c60083495574 | train | _pytest/test_unwrap_attachments.py | test | wee-slack/wee-slack:_pytest/test_unwrap_attachments.py | 183 | 4 | assert | test_unwrap_attachments | from __future__ import print_function, unicode_literals
import wee_slack
import pytest
@pytest.mark.parametrize('case', (
{
'input_message': {'attachments': [{
'title': 'Title',
}]},
'input_text_before': "Text before",
'output': "\n".join([
"",
... | case['output'] | added | f61bb2f7beaf670601f00a68fc443ac62b35888e932c6f92a96a768051d62f19 | assert|test_unwrap_attachments|from __future__ import print_function, unicode_literals import wee_slack import pytest @pytest.mark.parametrize('case', ( { 'input_message': {'attachments': [{ 'title': 'Title', }]}, 'input_text_before': "Text before", 'output': "\n".join([ "", "Title", ]), }, { 'input_message': {'attachm... | null | null | null |
wee-slack/wee-slack | train | 47 | 6d852774e39e9c548543bd986f440a33800523de | train | _pytest/test_unwrap_attachments.py | test | wee-slack/wee-slack:_pytest/test_unwrap_attachments.py | 198 | 4 | assert | test_unwrap_attachments | from __future__ import print_function, unicode_literals
import wee_slack
import pytest
@pytest.mark.parametrize('case', (
{
'input_message': {'attachments': [{
'title': 'Title',
}]},
'input_text_before': "Text before",
'output': "\n".join([
"",
... | case['output'] | added | 336a38944ad74991f9847e00f236983681de66630776623dee8a85b6fd44b983 | assert|test_unwrap_attachments|from __future__ import print_function, unicode_literals import wee_slack import pytest @pytest.mark.parametrize('case', ( { 'input_message': {'attachments': [{ 'title': 'Title', }]}, 'input_text_before': "Text before", 'output': "\n".join([ "", "Title", ]), }, { 'input_message': {'attachm... | null | null | null |
wee-slack/wee-slack | train | 48 | 37f1f7be4b7a10847b0bf0d68875067096a883e5 | train | _pytest/test_unwrap_attachments.py | test | wee-slack/wee-slack:_pytest/test_unwrap_attachments.py | 222 | 4 | assert | test_unwrap_attachments | from __future__ import print_function, unicode_literals
import wee_slack
import pytest
@pytest.mark.parametrize('case', (
{
'input_message': {'attachments': [{
'title': 'Title',
}]},
'input_text_before': "Text before",
'output': "\n".join([
"",
... | case['output'] | added | 47c1b18bcd2170239c2fb5f9d1b6d59b4a3bbf75b4078bfad0f4b38d4920981d | assert|test_unwrap_attachments|from __future__ import print_function, unicode_literals import wee_slack import pytest @pytest.mark.parametrize('case', ( { 'input_message': {'attachments': [{ 'title': 'Title', }]}, 'input_text_before': "Text before", 'output': "\n".join([ "", "Title", ]), }, { 'input_message': {'attachm... | null | null | null |
wee-slack/wee-slack | train | 49 | a037db8cfe9d21d6faf68491c09f293d49902fc5 | train | _pytest/test_unwrap_attachments.py | test | wee-slack/wee-slack:_pytest/test_unwrap_attachments.py | 257 | 4 | assert | test_unwrap_attachments | from __future__ import print_function, unicode_literals
import wee_slack
import pytest
@pytest.mark.parametrize('case', (
{
'input_message': {'attachments': [{
'title': 'Title',
}]},
'input_text_before': "Text before",
'output': "\n".join([
"",
... | case['output'] | added | ff95a08053fc82af03f9367acaf71b535a209682257a5642a263f67c545a3e55 | assert|test_unwrap_attachments|from __future__ import print_function, unicode_literals import wee_slack import pytest @pytest.mark.parametrize('case', ( { 'input_message': {'attachments': [{ 'title': 'Title', }]}, 'input_text_before': "Text before", 'output': "\n".join([ "", "Title", ]), }, { 'input_message': {'attachm... | null | null | null |
wee-slack/wee-slack | train | 50 | 069378f95ca09a73252cefadd5cf8d2e4a976a61 | train | _pytest/test_unwrap_attachments.py | test | wee-slack/wee-slack:_pytest/test_unwrap_attachments.py | 273 | 4 | assert | test_unwrap_attachments | from __future__ import print_function, unicode_literals
import wee_slack
import pytest
@pytest.mark.parametrize('case', (
{
'input_message': {'attachments': [{
'title': 'Title',
}]},
'input_text_before': "Text before",
'output': "\n".join([
"",
... | case['output'] | added | 520a3a9ceea021684dc3733eddac9fca0534d51ac9cea5db24c5b9d8a8fd2cbe | assert|test_unwrap_attachments|from __future__ import print_function, unicode_literals import wee_slack import pytest @pytest.mark.parametrize('case', ( { 'input_message': {'attachments': [{ 'title': 'Title', }]}, 'input_text_before': "Text before", 'output': "\n".join([ "", "Title", ]), }, { 'input_message': {'attachm... | null | null | null |
wee-slack/wee-slack | train | 51 | 856159d8e5ceff5f678ab4d5a8ecb2ca6b972b0a | train | _pytest/test_topic_command.py | train | wee-slack/wee-slack:_pytest/test_topic_command.py | 40 | 4 | assert | test_parse_topic_with_channel | from __future__ import print_function, unicode_literals
import wee_slack
from wee_slack import parse_topic_command, topic_command_cb
from mock import patch
def test_parse_topic_without_arguments():
channel_name, topic = parse_topic_command('/topic')
assert channel_name is None
assert topic is None
def... | None | added | 9db9b92403477c501cc76ac2665fb9454be151166779f771d537b2914c8a9a0d | assert|test_parse_topic_with_channel|from __future__ import print_function, unicode_literals import wee_slack from wee_slack import parse_topic_command, topic_command_cb from mock import patch def test_parse_topic_without_arguments(): channel_name, topic = parse_topic_command('/topic') assert channel_name is None asser... | null | null | null |
wee-slack/wee-slack | train | 51 | 856159d8e5ceff5f678ab4d5a8ecb2ca6b972b0a | train | _pytest/test_topic_command.py | train | wee-slack/wee-slack:_pytest/test_topic_command.py | 47 | 4 | assert | test_parse_topic_with_channel_and_text | from __future__ import print_function, unicode_literals
import wee_slack
from wee_slack import parse_topic_command, topic_command_cb
from mock import patch
def test_parse_topic_without_arguments():
channel_name, topic = parse_topic_command('/topic')
assert channel_name is None
assert topic is None
def... | '#general' | added | 15c695d8f17d24edd88d4018fd45f68c1524951ba4fbc245ba100a2c2e56585a | assert|test_parse_topic_with_channel_and_text|from __future__ import print_function, unicode_literals import wee_slack from wee_slack import parse_topic_command, topic_command_cb from mock import patch def test_parse_topic_without_arguments(): channel_name, topic = parse_topic_command('/topic') assert channel_name is N... | null | null | null |
wee-slack/wee-slack | train | 51 | 856159d8e5ceff5f678ab4d5a8ecb2ca6b972b0a | train | _pytest/test_topic_command.py | train | wee-slack/wee-slack:_pytest/test_topic_command.py | 54 | 4 | assert | test_parse_topic_with_channel_and_delete | from __future__ import print_function, unicode_literals
import wee_slack
from wee_slack import parse_topic_command, topic_command_cb
from mock import patch
def test_parse_topic_without_arguments():
channel_name, topic = parse_topic_command('/topic')
assert channel_name is None
assert topic is None
def... | '#general' | added | e0129217bd80a15876544960108047d4b6ee25ecb56b15d96026844922bc38ab | assert|test_parse_topic_with_channel_and_delete|from __future__ import print_function, unicode_literals import wee_slack from wee_slack import parse_topic_command, topic_command_cb from mock import patch def test_parse_topic_without_arguments(): channel_name, topic = parse_topic_command('/topic') assert channel_name is... | null | null | null |
wee-slack/wee-slack | train | 51 | 856159d8e5ceff5f678ab4d5a8ecb2ca6b972b0a | train | _pytest/test_topic_command.py | train | wee-slack/wee-slack:_pytest/test_topic_command.py | 85 | 8 | assert | test_call_topic_with_unknown_channel | from __future__ import print_function, unicode_literals
import wee_slack
from wee_slack import parse_topic_command, topic_command_cb
from mock import patch
def test_parse_topic_without_arguments():
channel_name, topic = parse_topic_command('/topic')
assert channel_name is None
assert topic is None
def... | wee_slack.w.WEECHAT_RC_OK_EAT | added | 4f47b1a157e2b9fc480c312f5c7d40d7f837ecc959d5d8c9ffd09b30fb2d150c | assert|test_call_topic_with_unknown_channel|from __future__ import print_function, unicode_literals import wee_slack from wee_slack import parse_topic_command, topic_command_cb from mock import patch def test_parse_topic_without_arguments(): channel_name, topic = parse_topic_command('/topic') assert channel_name is Non... | null | null | null |
wee-slack/wee-slack | train | 52 | 5c3879f05a1e46a9752bfb519d442205e61590af | train | _pytest/test_unwrap_attachments.py | test | wee-slack/wee-slack:_pytest/test_unwrap_attachments.py | 273 | 4 | assert | test_unwrap_attachments | from __future__ import print_function, unicode_literals
import wee_slack
import pytest
@pytest.mark.parametrize('case', (
{
'input_message': {'attachments': [{
'title': 'Title',
}]},
'input_text_before': "Text before",
'output': "\n".join([
"",
... | case['output'] | modified | 640c2a1275f0af87de322ccfb194ecae361f1611beaf70d5912b6ffb846ef72e | assert|test_unwrap_attachments|from __future__ import print_function, unicode_literals import wee_slack import pytest @pytest.mark.parametrize('case', ( { 'input_message': {'attachments': [{ 'title': 'Title', }]}, 'input_text_before': "Text before", 'output': "\n".join([ "", "Title", ]), }, { 'input_message': {'attachm... | case['output'] | 273 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.