9
9
from graph_notebook .configuration .generate_config import AuthModeEnum , Configuration , GremlinSection
10
10
from graph_notebook .configuration .get_config import get_config
11
11
from graph_notebook .neptune .client import (NEPTUNE_DB_SERVICE_NAME , NEPTUNE_ANALYTICS_SERVICE_NAME ,
12
- DEFAULT_HTTP_PROTOCOL )
12
+ DEFAULT_HTTP_PROTOCOL , DEFAULT_WS_PROTOCOL )
13
13
14
14
15
15
class TestGenerateConfigurationMain (unittest .TestCase ):
@@ -135,7 +135,7 @@ def test_generate_configuration_main_gremlin_protocol_no_service(self):
135
135
self .assertEqual (0 , result )
136
136
config = get_config (self .test_file_path )
137
137
config_dict = config .to_dict ()
138
- self .assertEqual (DEFAULT_HTTP_PROTOCOL , config_dict ['gremlin' ]['connection_protocol' ])
138
+ self .assertEqual (DEFAULT_WS_PROTOCOL , config_dict ['gremlin' ]['connection_protocol' ])
139
139
140
140
def test_generate_configuration_main_gremlin_protocol_db (self ):
141
141
result = os .system (f'{ self .python_cmd } -m graph_notebook.configuration.generate_config '
@@ -149,7 +149,7 @@ def test_generate_configuration_main_gremlin_protocol_db(self):
149
149
self .assertEqual (0 , result )
150
150
config = get_config (self .test_file_path )
151
151
config_dict = config .to_dict ()
152
- self .assertEqual (DEFAULT_HTTP_PROTOCOL , config_dict ['gremlin' ]['connection_protocol' ])
152
+ self .assertEqual (DEFAULT_WS_PROTOCOL , config_dict ['gremlin' ]['connection_protocol' ])
153
153
154
154
def test_generate_configuration_main_gremlin_protocol_analytics (self ):
155
155
result = os .system (f'{ self .python_cmd } -m graph_notebook.configuration.generate_config '
0 commit comments