Traceback (most recent call last):
File "test/my_test.py", line 11, in setUp
File "/Projects/tilegames/test/_base_test.py", line 50, in setUp
File "/Projects/tilegames/lib/requests/api.py", line 119, in post
File "/Projects/tilegames/lib/requests/api.py", line 61, in request
File "/Projects/tilegames/lib/requests/sessions.py", line 530, in request
File "/Projects/tilegames/lib/requests/sessions.py", line 643, in send
File "/Projects/tilegames/lib/requests/adapters.py", line 516, in send
ConnectionError: HTTPConnectionPool(host='localhost', port=8089): Max retries exceeded with url: /reset (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x11286e590>: Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known',))
Hello Jon,
Unfortunately, since this is not the correct group for providing support for the Datastore Emulator, I suggest that you focus on monitoring the thread you have already opened in the Google Cloud Datastore group.
Alternatively, I agree that it would be a good idea to post your issue on Stack Overflow as you have mentioned, and you may also consider using Issue Tracker. From there, you would either consult existing Datastore issues or create your own entry describing the Datastore emulator test issue you are encountering.
--
You received this message because you are subscribed to a topic in the Google Groups "Google App Engine" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-appengine/SL8Cmm-304k/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-appengi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/dacf6ad8-386e-42c7-ac79-136e13e7ef09%40googlegroups.com.
import requests
import unittest
import webapp2
from google.cloud import ndb
from test._testhelper import TestHelper
NDB_CLIENT = ndb.Client(project='tilegames2')
NDB_CLIENT.host = 'localhost:8089'
NDB_CLIENT.secure = False
class MyTestCase(unittest.TestCase):
def setUp(self):
self.testapp = webapp2.WSGIApplication([])
self.testHelper = TestHelper()
# clear datastore
self.ndb_context = NDB_CLIENT.context()
self.ndb_context.__enter__()
def tearDown(self):
self.ndb_context.__exit__(None, None, None)