Skip to content

Commit 92f314a

Browse files
committed
Move test skips into driver's backend
1 parent 0f0a75c commit 92f314a

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

neo4j/io/_common.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,8 @@ def __init__(self, connection, on_error):
159159
self.__connection = connection
160160
self.__on_error = on_error
161161

162-
def __getattr__(self, item):
163-
connection_attr = getattr(self.__connection, item)
162+
def __getattr__(self, name):
163+
connection_attr = getattr(self.__connection, name)
164164
if not callable(connection_attr):
165165
return connection_attr
166166

@@ -175,6 +175,13 @@ def inner(*args, **kwargs):
175175

176176
return outer(connection_attr)
177177

178+
def __setattr__(self, name, value):
179+
if name.startswith("_" + self.__class__.__name__ + "__"):
180+
super().__setattr__(name, value)
181+
else:
182+
setattr(self.__connection, name, value)
183+
184+
178185

179186
class Response:
180187
""" Subscriber object for a full response (zero or

testkitbackend/test_config.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@
66
"Driver closes connection to router if DNS resolved name not in routing table",
77
"stub.routing.test_routing_v4x3.RoutingV4x3.test_should_retry_write_until_success_with_leader_change_using_tx_function":
88
"Driver closes connection to router if DNS resolved name not in routing table",
9+
"stub.routing.test_routing_v4x1.RoutingV4x1.test_should_retry_write_until_success_with_leader_change_on_run_using_tx_function":
10+
"Driver closes connection to router if DNS resolved name not in routing table",
11+
"stub.routing.test_routing_v3.RoutingV3.test_should_retry_write_until_success_with_leader_change_on_run_using_tx_function":
12+
"Driver closes connection to router if DNS resolved name not in routing table",
13+
"stub.routing.test_routing_v4x3.RoutingV4x3.test_should_retry_write_until_success_with_leader_change_on_run_using_tx_function":
14+
"Driver closes connection to router if DNS resolved name not in routing table",
915
"stub.routing.test_routing_v4x1.RoutingV4x1.test_should_retry_write_until_success_with_leader_shutdown_during_tx_using_tx_function":
1016
"Driver closes connection to router if DNS resolved name not in routing table",
1117
"stub.routing.test_routing_v3.RoutingV3.test_should_retry_write_until_success_with_leader_shutdown_during_tx_using_tx_function":

0 commit comments

Comments
 (0)