-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
40 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
from unittest import TestCase | ||
|
||
from surrealdb.http import HTTPConnection | ||
from surrealdb.connection_http import HTTPConnection | ||
|
||
|
||
class TestWSConnection(TestCase): | ||
def setup(self): | ||
async def asyncSetup(self): | ||
http_con = HTTPConnection(base_url='http://localhost:8000', namespace='test', database='test') | ||
await http_con.connect() | ||
await http_con.send('signin', {'user': 'root', 'pass': 'root'}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
from unittest import TestCase | ||
from unittest import IsolatedAsyncioTestCase | ||
|
||
from surrealdb.ws import WebsocketConnection | ||
from surrealdb.connection_ws import WebsocketConnection | ||
|
||
|
||
class TestWSConnection(TestCase): | ||
def setup(self): | ||
class TestWSConnection(IsolatedAsyncioTestCase): | ||
async def asyncSetup(self): | ||
ws_con = WebsocketConnection(base_url='ws://localhost:8000', namespace='test', database='test') | ||
await ws_con.connect() | ||
await ws_con.send('signin', {'user': 'root', 'pass': 'root'}) |