13
13
IMAGE_VERSION = "3.11.8"
14
14
15
15
16
- def arango_test_ops (arango_client , expeced_version , username = "root" , password = "" ):
16
+ def arango_test_ops (arango_client , expected_version , username = "root" , password = "" ):
17
17
"""
18
18
Basic ArangoDB operations to test DB really up and running.
19
19
"""
@@ -22,7 +22,7 @@ def arango_test_ops(arango_client, expeced_version, username="root", password=""
22
22
# Taken from https://github.com/ArangoDB-Community/python-arango/blob/main/README.md
23
23
# Connect to "_system" database as root user.
24
24
sys_db = arango_client .db ("_system" , username = username , password = password )
25
- assert sys_db .version () == expeced_version
25
+ assert sys_db .version () == expected_version
26
26
27
27
# Create a new database named "test".
28
28
sys_db .create_database ("test" )
@@ -63,7 +63,7 @@ def test_docker_run_arango():
63
63
with pytest .raises (DatabaseCreateError ):
64
64
sys_db .create_database ("test" )
65
65
66
- arango_test_ops (arango_client = client , expeced_version = IMAGE_VERSION , password = arango_root_password )
66
+ arango_test_ops (arango_client = client , expected_version = IMAGE_VERSION , password = arango_root_password )
67
67
68
68
69
69
def test_docker_run_arango_without_auth ():
@@ -75,7 +75,7 @@ def test_docker_run_arango_without_auth():
75
75
with ArangoDbContainer (image , arango_no_auth = True ) as arango :
76
76
client = ArangoClient (hosts = arango .get_connection_url ())
77
77
78
- arango_test_ops (arango_client = client , expeced_version = IMAGE_VERSION , password = "" )
78
+ arango_test_ops (arango_client = client , expected_version = IMAGE_VERSION , password = "" )
79
79
80
80
81
81
@pytest .mark .skipif (platform .processor () == "arm" , reason = "Test does not run on machines with ARM CPU" )
@@ -94,7 +94,7 @@ def test_docker_run_arango_older_version():
94
94
with ArangoDbContainer (image , arango_no_auth = True ) as arango :
95
95
client = ArangoClient (hosts = arango .get_connection_url ())
96
96
97
- arango_test_ops (arango_client = client , expeced_version = image_version , password = "" )
97
+ arango_test_ops (arango_client = client , expected_version = image_version , password = "" )
98
98
99
99
100
100
def test_docker_run_arango_random_root_password ():
0 commit comments