Skip to content

Commit

Permalink
enhance readme (#256)
Browse files Browse the repository at this point in the history
  • Loading branch information
HarrisChu authored Jan 30, 2023
1 parent 23bf01f commit 923aa84
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# nebula-python

This repository holds the official Python API for Nebula Graph.
This repository holds the official Python API for NebulaGraph.

## Before you start

Before you start, please read this section to choose the right branch for you. The compatibility between the API and Nebula Graph service can be found in [How to choose nebula-python](##How-to-choose-nebula-python). The current master branch is compatible with Nebula Graph 3.3.
Before you start, please read this section to choose the right branch for you. The compatibility between the API and NebulaGraph service can be found in [How to choose nebula-python](##How-to-choose-nebula-python). The current master branch is compatible with NebulaGraph 3.3.

## The directory structure

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
license='Apache 2.0',
author='vesoft-inc',
author_email='info@vesoft.com',
description='Python client for Nebula Graph V3.0',
description='Python client for NebulaGraph V3.0',
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/vesoft-inc/nebula-python',
Expand Down
3 changes: 3 additions & 0 deletions tests/docker-compose-ssl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,7 @@ services:
- --cert_path=${cert_path}
- --key_path=${key_path}
- --enable_ssl=${enable_ssl}
- --session_reclaim_interval_secs=3
depends_on:
- metad0
- metad1
Expand Down Expand Up @@ -323,6 +324,7 @@ services:
- --cert_path=${cert_path}
- --key_path=${key_path}
- --enable_ssl=${enable_ssl}
- --session_reclaim_interval_secs=3
depends_on:
- metad0
- metad1
Expand Down Expand Up @@ -366,6 +368,7 @@ services:
- --cert_path=${cert_path}
- --key_path=${key_path}
- --enable_ssl=${enable_ssl}
- --session_reclaim_interval_secs=3
depends_on:
- metad0
- metad1
Expand Down
3 changes: 3 additions & 0 deletions tests/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,7 @@ services:
- --cert_path=${cert_path}
- --key_path=${key_path}
- --enable_ssl=${enable_ssl}
- --session_reclaim_interval_secs=3
depends_on:
- metad0
- metad1
Expand Down Expand Up @@ -323,6 +324,7 @@ services:
- --cert_path=${cert_path}
- --key_path=${key_path}
- --enable_ssl=${enable_ssl}
- --session_reclaim_interval_secs=3
depends_on:
- metad0
- metad1
Expand Down Expand Up @@ -366,6 +368,7 @@ services:
- --cert_path=${cert_path}
- --key_path=${key_path}
- --enable_ssl=${enable_ssl}
- --session_reclaim_interval_secs=3
depends_on:
- metad0
- metad1
Expand Down
6 changes: 4 additions & 2 deletions tests/test_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,18 +45,20 @@ def get_local_session(pool):
def test_2_reconnect(self):
try:
session = self.pool.get_session('root', 'nebula')
# wait for the session update
time.sleep(2)
session.execute(
'CREATE SPACE IF NOT EXISTS test_session(vid_type=FIXED_STRING(8)); USE test_session;'
)
time.sleep(3)
time.sleep(10)
for i in range(0, 5):
if i == 3:
os.system('docker stop tests_graphd0_1')
os.system('docker stop tests_graphd1_1')
time.sleep(3)
# the session update later, the expect test
# resp = session.execute('SHOW TAGS')
resp = session.execute('SHOW HOSTS')
resp = session.execute('SHOW SESSIONS')
assert resp.is_succeeded(), resp.error_msg()
assert resp.space_name() == 'test_session'
time.sleep(2)
Expand Down

0 comments on commit 923aa84

Please sign in to comment.