diff options
author | Ryan Huber <rhuber@gmail.com> | 2017-02-02 17:43:41 -0800 |
---|---|---|
committer | Ryan Huber <rhuber@gmail.com> | 2017-02-02 17:43:41 -0800 |
commit | 4b6fe56a99b114cdacddd2429c83a9cee160c89e (patch) | |
tree | b49da1bf90b02b48dee87a235b259278ade13858 /_pytest/conftest.py | |
parent | dde53037734027abcc44d01175fecefda13dea14 (diff) | |
download | wee-slack-4b6fe56a99b114cdacddd2429c83a9cee160c89e.tar.gz |
that was super not fun to debug
Diffstat (limited to '_pytest/conftest.py')
-rw-r--r-- | _pytest/conftest.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/_pytest/conftest.py b/_pytest/conftest.py index 0212601..07dfc5e 100644 --- a/_pytest/conftest.py +++ b/_pytest/conftest.py @@ -1,4 +1,3 @@ -import pickle import json import pytest import sys @@ -29,9 +28,9 @@ def mock_websocket(): @pytest.fixture def realish_eventrouter(): e = EventRouter() - pickled_data = pickle.dumps(SlackRequest('xoxoxoxox', "rtm.start", {"meh": "blah"})) + context = e.store_context(SlackRequest('xoxoxoxox', "rtm.start", {"meh": "blah"})) rtmstartdata = open('_pytest/data/http/rtm.start.json', 'r').read() - e.receive_httprequest_callback(pickled_data, 1, 0, rtmstartdata, 4) + e.receive_httprequest_callback(context, 1, 0, rtmstartdata, 4) e.handle_next() return e |