Skip to content

Commit 7b54c34

Browse files
pylint: fix consider-iterating-dictionary cases
Fix all cases of C0201 consider-iterating-dictionary. Part of #270
1 parent a003d02 commit 7b54c34

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/suites/test_schema.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ def _run_test_schema_fetch_disable(self, con, mode=None):
470470
else:
471471
self.assertEqual(con.schema_version, 0)
472472
self.assertEqual(con.schema, None)
473-
for method_case in self.testing_methods['unavailable'].keys():
473+
for method_case in self.testing_methods['unavailable']:
474474
with self.subTest(name=method_case):
475475
if isinstance(con, tarantool.ConnectionPool) and method_case == 'space':
476476
continue
@@ -488,7 +488,7 @@ def _run_test_schema_fetch_disable(self, con, mode=None):
488488
'connection opened with fetch_schema=False')
489489
# Testing the schemaless connection with methods
490490
# that should be available.
491-
for method_case in self.testing_methods['available'].keys():
491+
for method_case in self.testing_methods['available']:
492492
with self.subTest(name=method_case):
493493
testing_function = getattr(con, method_case)
494494
if mode is not None:
@@ -514,7 +514,7 @@ def _run_test_schema_fetch_disable(self, con, mode=None):
514514

515515
# Testing the schemaful connection with methods
516516
# that should NOW be available.
517-
for method_case in self.testing_methods['unavailable'].keys():
517+
for method_case in self.testing_methods['unavailable']:
518518
with self.subTest(name=method_case):
519519
if isinstance(con, tarantool.ConnectionPool) and method_case == 'space':
520520
continue
@@ -534,7 +534,7 @@ def _run_test_schema_fetch_disable(self, con, mode=None):
534534
self.testing_methods['unavailable'][method_case]['output'])
535535
# Testing the schemaful connection with methods
536536
# that should have remained available.
537-
for method_case in self.testing_methods['available'].keys():
537+
for method_case in self.testing_methods['available']:
538538
with self.subTest(name=method_case):
539539
testing_function = getattr(con, method_case)
540540
if mode is not None:

0 commit comments

Comments
 (0)