diff options
author | Ryan Huber <rhuber@gmail.com> | 2015-03-18 23:33:16 -0700 |
---|---|---|
committer | Ryan Huber <rhuber@gmail.com> | 2015-03-18 23:33:16 -0700 |
commit | 376db5991158c3c20a944f011433352c6d596dbe (patch) | |
tree | 91129f15ee405c9f79ff96802ab606c89a59ec22 /_pytest/data | |
parent | b522ae2870d30b91db5f81c77e99f4dd31883f86 (diff) | |
download | wee-slack-376db5991158c3c20a944f011433352c6d596dbe.tar.gz |
add some initial tests. messages need a lot of work..
Diffstat (limited to '_pytest/data')
-rw-r--r-- | _pytest/data/message-changed.json | 19 | ||||
-rw-r--r-- | _pytest/data/message-deleted.json | 9 | ||||
-rw-r--r-- | _pytest/data/message-normal.json | 8 | ||||
-rw-r--r-- | _pytest/data/message-normal2.json | 8 |
4 files changed, 44 insertions, 0 deletions
diff --git a/_pytest/data/message-changed.json b/_pytest/data/message-changed.json new file mode 100644 index 0000000..5a229dc --- /dev/null +++ b/_pytest/data/message-changed.json @@ -0,0 +1,19 @@ +{ + "type": "message", + "subtype": "message_changed", + "hidden": true, + "channel": "C2147483705", + "ts": "1355517529.000005", + "message": { + "type": "message", + "user": "U2147483697", + "text": "Hello world", + "ts": "1355517519.000005", + "edited": { + "user": "U2147483697", + "ts": "12341234" + } + }, + + "myserver": "test.slack.com" +} diff --git a/_pytest/data/message-deleted.json b/_pytest/data/message-deleted.json new file mode 100644 index 0000000..91190b3 --- /dev/null +++ b/_pytest/data/message-deleted.json @@ -0,0 +1,9 @@ +{ + "type": "message", + "subtype": "message_deleted", + "hidden": true, + "channel": "C2147483705", + "ts": "1358878755.000001", + "deleted_ts": "1355517519.000005", + "myserver": "test.slack.com" +} diff --git a/_pytest/data/message-normal.json b/_pytest/data/message-normal.json new file mode 100644 index 0000000..f3dc568 --- /dev/null +++ b/_pytest/data/message-normal.json @@ -0,0 +1,8 @@ +{ + "type": "message", + "channel": "C2147483705", + "user": "U2147483697", + "text": "Hello world", + "ts": "1355517523.000005", + "myserver": "test.slack.com" +} diff --git a/_pytest/data/message-normal2.json b/_pytest/data/message-normal2.json new file mode 100644 index 0000000..b67be66 --- /dev/null +++ b/_pytest/data/message-normal2.json @@ -0,0 +1,8 @@ +{ + "type": "message", + "channel": "C2147483705", + "user": "U2147483697", + "text": "A Second message!", + "ts": "1355517524.000005", + "myserver": "test.slack.com" +} |