-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #89 from mindsdb/server-info
Server info
- Loading branch information
Showing
3 changed files
with
26 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -178,9 +178,11 @@ def check_table(self, table, mock_post): | |
|
||
class Test(BaseFlow): | ||
|
||
@patch('requests.Session.get') | ||
@patch('requests.Session.put') | ||
@patch('requests.Session.post') | ||
def test_flow(self, mock_post, mock_put): | ||
def test_flow(self, mock_post, mock_put, mock_get): | ||
|
||
# check local | ||
server = mindsdb_sdk.connect() | ||
str(server) | ||
|
@@ -194,6 +196,11 @@ def test_flow(self, mock_post, mock_put): | |
assert call_args[0][0] == 'https://cloud.mindsdb.com/cloud/login' | ||
assert call_args[1]['json']['email'] == '[email protected]' | ||
|
||
# server status | ||
server.status() | ||
call_args = mock_get.call_args | ||
assert call_args[0][0] == 'https://cloud.mindsdb.com/api/status' | ||
|
||
# --------- databases ------------- | ||
response_mock(mock_post, pd.DataFrame([{'NAME': 'db1'}])) | ||
|
||
|