MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_row_no_description

Method test_row_no_description

Lib/test/test_sqlite3/test_dbapi.py:2042–2049  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2040
2041 @unittest.expectedFailure # TODO: RUSTPYTHON Row with no description fails
2042 def test_row_no_description(self):
2043 cu = self.cx.cursor()
2044 self.assertIsNone(cu.description)
2045
2046 row = sqlite.Row(cu, ())
2047 self.assertEqual(row.keys(), [])
2048 with self.assertRaisesRegex(IndexError, "nokey"):
2049 row["nokey"]
2050
2051 def test_row_is_a_sequence(self):
2052 from collections.abc import Sequence

Callers

nothing calls this directly

Calls 5

keysMethod · 0.95
cursorMethod · 0.80
assertIsNoneMethod · 0.80
assertRaisesRegexMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected