@@ -45,7 +45,6 @@ def test_import_neo4j():
45
45
("BoltDriver" , None ),
46
46
("Bookmark" , None ),
47
47
("Bookmarks" , None ),
48
- ("Config" , DeprecationWarning ),
49
48
("custom_auth" , None ),
50
49
("DEFAULT_DATABASE" , None ),
51
50
("Driver" , None ),
@@ -57,7 +56,6 @@ def test_import_neo4j():
57
56
("IPv4Address" , None ),
58
57
("IPv6Address" , None ),
59
58
("kerberos_auth" , None ),
60
- ("log" , DeprecationWarning ),
61
59
("ManagedTransaction" , None ),
62
60
("Neo4jDriver" , None ),
63
61
("NotificationCategory" , None ),
@@ -66,7 +64,6 @@ def test_import_neo4j():
66
64
("NotificationDisabledClassification" , PreviewWarning ),
67
65
("NotificationMinimumSeverity" , None ),
68
66
("NotificationSeverity" , None ),
69
- ("PoolConfig" , DeprecationWarning ),
70
67
("PreviewWarning" , None ),
71
68
("Query" , None ),
72
69
("READ_ACCESS" , None ),
@@ -76,11 +73,9 @@ def test_import_neo4j():
76
73
("RoutingControl" , None ),
77
74
("ServerInfo" , None ),
78
75
("Session" , None ),
79
- ("SessionConfig" , DeprecationWarning ),
80
76
("SummaryCounters" , None ),
81
77
("SummaryInputPosition" , None ),
82
78
("SummaryNotification" , None ),
83
- ("SummaryNotificationPosition" , DeprecationWarning ),
84
79
("SYSTEM_DATABASE" , None ),
85
80
("Transaction" , None ),
86
81
("TRUST_ALL_CERTIFICATES" , None ),
@@ -90,7 +85,6 @@ def test_import_neo4j():
90
85
("TrustSystemCAs" , None ),
91
86
("unit_of_work" , None ),
92
87
("Version" , None ),
93
- ("WorkspaceConfig" , DeprecationWarning ),
94
88
("WRITE_ACCESS" , None ),
95
89
)
96
90
@@ -129,28 +123,7 @@ def test_dir():
129
123
def test_import_star ():
130
124
with pytest .warns () as warnings :
131
125
importlib .__import__ ("neo4j" , fromlist = ("*" ,))
132
- assert len (warnings ) == 9
133
- assert all (
134
- issubclass (w .category , (DeprecationWarning , PreviewWarning ))
135
- for w in warnings
136
- )
137
-
138
- for name in (
139
- "log" ,
140
- "Config" ,
141
- "PoolConfig" ,
142
- "SessionConfig" ,
143
- "WorkspaceConfig" ,
144
- "SummaryNotificationPosition" ,
145
- ):
146
- assert (
147
- sum (
148
- bool (re .match (rf".*\b{ name } \b.*" , str (w .message )))
149
- for w in warnings
150
- if issubclass (w .category , DeprecationWarning )
151
- )
152
- == 1
153
- )
126
+ assert len (warnings ) == 3
154
127
155
128
for name in (
156
129
"NotificationClassification" ,
0 commit comments