aboutsummaryrefslogtreecommitdiffstats
path: root/_pytest/conftest.py
diff options
context:
space:
mode:
Diffstat (limited to '_pytest/conftest.py')
-rw-r--r--_pytest/conftest.py5
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