11from nutkit import protocol as types
22
33from ..shared import (
4- driver_feature ,
54 get_driver_name ,
65 TestkitTestCase ,
76)
@@ -38,44 +37,37 @@ def work(tx):
3837 self ._session = self ._driver .session ("w" )
3938 return self ._session .write_transaction (work )
4039
41- @driver_feature (types .Feature .TMP_FULL_SUMMARY )
4240 def test_can_obtain_summary_after_consuming_result (self ):
4341 summary = self .get_summary ("CREATE (n) RETURN n" )
4442 self .assertEqual (summary .query .text , "CREATE (n) RETURN n" )
4543 self .assertEqual (summary .query .parameters , {})
4644 self .assertEqual (summary .query_type , "rw" )
4745 self .assertEqual (summary .counters .nodes_created , 1 )
4846
49- @driver_feature (types .Feature .TMP_FULL_SUMMARY )
5047 def test_no_plan_info (self ):
5148 summary = self .get_summary ("CREATE (n) RETURN n" )
5249 self .assertIsNone (summary .plan )
5350 self .assertIsNone (summary .profile )
5451
55- @driver_feature (types .Feature .TMP_FULL_SUMMARY )
5652 def test_can_obtain_plan_info (self ):
5753 summary = self .get_summary ("EXPLAIN CREATE (n) RETURN n" )
5854 self .assertIsInstance (summary .plan , dict )
5955
60- @driver_feature (types .Feature .TMP_FULL_SUMMARY )
6156 def test_can_obtain_profile_info (self ):
6257 summary = self .get_summary ("PROFILE CREATE (n) RETURN n" )
6358 self .assertIsInstance (summary .profile , dict )
6459
65- @driver_feature (types .Feature .TMP_FULL_SUMMARY )
6660 def test_no_notification_info (self ):
6761 summary = self .get_summary ("CREATE (n) RETURN n" )
6862 self .assertIsNone (summary .notifications )
6963
70- @driver_feature (types .Feature .TMP_FULL_SUMMARY )
7164 def test_can_obtain_notification_info (self ):
7265 summary = self .get_summary ("EXPLAIN MATCH (n), (m) RETURN n, m" )
7366 notifications = summary .notifications
7467 self .assertIsInstance (notifications , list )
7568 self .assertEqual (len (notifications ), 1 )
7669 self .assertIsInstance (notifications [0 ], dict )
7770
78- @driver_feature (types .Feature .TMP_FULL_SUMMARY )
7971 def test_contains_time_information (self ):
8072 summary = self .get_summary ("UNWIND range(1, 100) AS n "
8173 "RETURN n AS number" )
@@ -86,7 +78,6 @@ def test_contains_time_information(self):
8678 self .assertGreaterEqual (summary .result_available_after , 0 )
8779 self .assertGreaterEqual (summary .result_consumed_after , 0 )
8880
89- @driver_feature (types .Feature .TMP_FULL_SUMMARY )
9081 def test_protocol_version_information (self ):
9182 summary = self .get_summary ("RETURN 1 AS number" )
9283
@@ -148,7 +139,6 @@ def _assert_counters(self, summary, nodes_created=0, nodes_deleted=0,
148139 self .assertIsInstance (counter_val , type (val ))
149140 self .assertEqual (counter_val , val )
150141
151- @driver_feature (types .Feature .TMP_FULL_SUMMARY )
152142 def test_summary_counters_case_1 (self ):
153143 params = {"number" : types .CypherInt (3 )}
154144
@@ -161,8 +151,6 @@ def test_summary_counters_case_1(self):
161151
162152 self ._assert_counters (summary )
163153
164- @driver_feature (types .Feature .TMP_RESULT_KEYS ,
165- types .Feature .TMP_FULL_SUMMARY )
166154 @requires_multi_db_support
167155 @cluster_unsafe_test
168156 def test_summary_counters_case_2 (self ):
0 commit comments