was changing the wrong object before
@@ -68,8 +68,10 @@ def patch_post(request):
def post_mockreturn(self, method, url, data, timeout, **kwargs):
response = MockResponseSimbad(data['script'], **kwargs)
- response._last_query = object
- response._last_query.data = data
+ class last_query(object):
+ pass
+ self._last_query = last_query()
+ self._last_query.data = data
return response
