@@ -45,7 +45,6 @@ def test_import_neo4j():
4545 ("BoltDriver" , None ),
4646 ("Bookmark" , None ),
4747 ("Bookmarks" , None ),
48- ("Config" , DeprecationWarning ),
4948 ("custom_auth" , None ),
5049 ("DEFAULT_DATABASE" , None ),
5150 ("Driver" , None ),
@@ -57,7 +56,6 @@ def test_import_neo4j():
5756 ("IPv4Address" , None ),
5857 ("IPv6Address" , None ),
5958 ("kerberos_auth" , None ),
60- ("log" , DeprecationWarning ),
6159 ("ManagedTransaction" , None ),
6260 ("Neo4jDriver" , None ),
6361 ("NotificationCategory" , None ),
@@ -66,7 +64,6 @@ def test_import_neo4j():
6664 ("NotificationDisabledClassification" , PreviewWarning ),
6765 ("NotificationMinimumSeverity" , None ),
6866 ("NotificationSeverity" , None ),
69- ("PoolConfig" , DeprecationWarning ),
7067 ("PreviewWarning" , None ),
7168 ("Query" , None ),
7269 ("READ_ACCESS" , None ),
@@ -76,11 +73,9 @@ def test_import_neo4j():
7673 ("RoutingControl" , None ),
7774 ("ServerInfo" , None ),
7875 ("Session" , None ),
79- ("SessionConfig" , DeprecationWarning ),
8076 ("SummaryCounters" , None ),
8177 ("SummaryInputPosition" , None ),
8278 ("SummaryNotification" , None ),
83- ("SummaryNotificationPosition" , DeprecationWarning ),
8479 ("SYSTEM_DATABASE" , None ),
8580 ("Transaction" , None ),
8681 ("TRUST_ALL_CERTIFICATES" , None ),
@@ -90,7 +85,6 @@ def test_import_neo4j():
9085 ("TrustSystemCAs" , None ),
9186 ("unit_of_work" , None ),
9287 ("Version" , None ),
93- ("WorkspaceConfig" , DeprecationWarning ),
9488 ("WRITE_ACCESS" , None ),
9589)
9690
@@ -129,28 +123,7 @@ def test_dir():
129123def test_import_star ():
130124 with pytest .warns () as warnings :
131125 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
154127
155128 for name in (
156129 "NotificationClassification" ,
0 commit comments