From 4b6fe56a99b114cdacddd2429c83a9cee160c89e Mon Sep 17 00:00:00 2001 From: Ryan Huber Date: Thu, 2 Feb 2017 17:43:41 -0800 Subject: that was super not fun to debug --- _pytest/conftest.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to '_pytest/conftest.py') 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 -- cgit