def setUp(self): db.create_all()
def setUp(self): """ setUp and tearDown are run at the start of each test; ensure that a fresh database is used for each test. """ db.create_all()
def setUp(self): db.create_all() self.io_client = socketio.test_client(self.app, namespace='/status') self.connected = self.io_client.get_received('/status')[0]['name'] assert self.connected == 'connect'
def setUp(self): db.create_all() self.io_client = socketio.test_client(self.app, namespace="/status") self.connected = self.io_client.get_received("/status")[0]["name"] assert self.connected == "connect"