Skip to content

Commit 9a80141

Browse files
committed
Tidy up and simplify test
1 parent 519744e commit 9a80141

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

pyArango/tests/tests.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1075,14 +1075,8 @@ def test_tasks(self):
10751075

10761076
def test_timeout_parameter(self):
10771077
# Create a Connection object with the desired timeout
1078-
# Create a mock AikidoSession class
1079-
mock_aikido_session = MagicMock()
1080-
10811078
timeout = 120
1082-
connection = Connection(arangoURL='http://127.0.0.1:8529', username='root', password='root', timeout=timeout)
1083-
1084-
# Call the reload method
1085-
connection.reload()
1079+
connection = Connection(arangoURL=ARANGODB_URL, username=ARANGODB_ROOT_USERNAME, password=ARANGODB_ROOT_PASSWORD, timeout=timeout)
10861080

10871081
# Verify that the Connection session was created with the correct timeout
10881082
assert connection.session.timeout == timeout

0 commit comments

Comments
 (0)